Skip to content

Instantly share code, notes, and snippets.

@agiliq
Created July 15, 2009 20:19
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 agiliq/147953 to your computer and use it in GitHub Desktop.
Save agiliq/147953 to your computer and use it in GitHub Desktop.
Hugs> Nothing
Nothing
Hugs> Nothing == Nothing
True
Hugs> Nothing > 10
ERROR - Cannot infer instance
*** Instance : Num (Maybe a)
*** Expression : Nothing > 10
Hugs> Nothing < 10
ERROR - Cannot infer instance
*** Instance : Num (Maybe a)
*** Expression : Nothing < 10
Hugs> 10 == 10
True
Hugs> 10 > Nothing
ERROR - Cannot infer instance
*** Instance : Num (Maybe a)
*** Expression : 10 > Nothing
Hugs> 10 < Nothing
ERROR - Cannot infer instance
*** Instance : Num (Maybe a)
*** Expression : 10 < Nothing
Hugs>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment