Created
February 21, 2019 11:11
-
-
Save Gryff/76e536bb84438a8fa0c27e4bcf87a096 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
main = do | |
runStateT useMyBank [] | |
pure () - we need to return IO () for main | |
useMyBank :: StateT [Transaction] IO () | |
useMyBank = do | |
deposit 200 | |
withdraw 100 | |
printStatement |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment