Created
February 6, 2016 00:12
-
-
Save laser/8275d79c846d7c7f23e9 to your computer and use it in GitHub Desktop.
Haskell 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
module Style ( | |
foo, | |
Bar(..) | |
) where | |
data Bar = Bar { x :: String | |
, y :: Int } deriving (Show, Eq) | |
foo :: Bool -> Int | |
foo b = if b then 1 | |
else 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment