Created
October 18, 2013 08:03
-
-
Save reite/7038067 to your computer and use it in GitHub Desktop.
How can I write the second function in point free style?
This file contains hidden or 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
data Foo = Foo1 String | |
| Foo2 String Int | |
data Bar = Bar Foo | |
foo1 :: String -> Bar | |
foo1 = Bar . Foo1 | |
foo2 :: String -> Int -> Bar | |
foo2 a b = Bar (Foo2 a b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment