Skip to content

Instantly share code, notes, and snippets.

@Gryff
Created February 21, 2019 11:11
Show Gist options
  • Save Gryff/76e536bb84438a8fa0c27e4bcf87a096 to your computer and use it in GitHub Desktop.
Save Gryff/76e536bb84438a8fa0c27e4bcf87a096 to your computer and use it in GitHub Desktop.
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