Created
November 5, 2012 03:13
-
-
Save hanshoglund/4015125 to your computer and use it in GitHub Desktop.
Type-fix combinators
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with :: b -> a -> b | |
with x _ = x | |
fix :: a -> (a -> b) -> a | |
fix x _ = x | |
fix1 :: (a -> b) -> (a -> a) -> a -> b | |
fix1 x _ = x | |
int :: Int -> Int | |
int = id | |
str :: JsString -> JsString | |
str = id | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment