Skip to content

Instantly share code, notes, and snippets.

@Gryff
Last active February 21, 2019 12:19
Show Gist options
  • Save Gryff/7a85da42455c563fe2df4f8eb63b9499 to your computer and use it in GitHub Desktop.
Save Gryff/7a85da42455c563fe2df4f8eb63b9499 to your computer and use it in GitHub Desktop.
printStatement :: StateT [Transaction] IO ()
printStatement = do
  transactions <- get
  let statement = generateStatement transactions
  lift (putStr statement)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment