Skip to content

Instantly share code, notes, and snippets.

@reite
Created October 18, 2013 08:03
Show Gist options
  • Save reite/7038067 to your computer and use it in GitHub Desktop.
Save reite/7038067 to your computer and use it in GitHub Desktop.
How can I write the second function in point free style?
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