Created
May 31, 2019 18:45
-
-
Save PeterHajdu/db894c2dd5ea89ecba09b3252aab6e04 to your computer and use it in GitHub Desktop.
nat
This file contains 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 Main | |
isZ : Nat -> Bool | |
isZ Z = True | |
isZ _ = False | |
main : IO () | |
main = do | |
print $ fromIntegerNat (-1) | |
print $ isZ $ fromIntegerNat (-1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment