Skip to content

Instantly share code, notes, and snippets.

@laser
Created February 6, 2016 00:12
Show Gist options
  • Save laser/8275d79c846d7c7f23e9 to your computer and use it in GitHub Desktop.
Save laser/8275d79c846d7c7f23e9 to your computer and use it in GitHub Desktop.
Haskell Style
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