Created
May 12, 2018 03:38
-
-
Save russmatney/340232635032f88c7da3ce235a2975b9 to your computer and use it in GitHub Desktop.
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
hasGotcha :: IO () | |
hasGotcha = do | |
let bob = User (UserName "bob") 42 Nothing HM.empty | |
print "Has bob gold in his inventory?" | |
print $ has (inventory . at "gold") bob | |
-- True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment