Created
June 16, 2016 04:53
-
-
Save kawakami-o3/77327f06a99a8c6ee61ccc64a04046a3 to your computer and use it in GitHub Desktop.
ghc -fwarn-incomplete-patterns -fwarn-incomplete-uni-patterns incomplete_pattern.hs
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 Hoge = Foo | Bar | |
| -- to_s :: Hoge -> String | |
| to_s Foo = "foo" | |
| main = do | |
| putStrLn $ to_s Foo | |
| putStrLn $ to_s Bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment