Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created August 19, 2015 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shigemk2/8faedc4ed5058e84f9a4 to your computer and use it in GitHub Desktop.
Save shigemk2/8faedc4ed5058e84f9a4 to your computer and use it in GitHub Desktop.
-- data CoolBool = CoolBool { getCoolBool :: Bool }
newtype CoolBool = CoolBool { getCoolBool :: Bool }
helloMe :: CoolBool -> String
helloMe (CoolBool _ ) = "hello"
main = do
print $ helloMe undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment