Skip to content

Instantly share code, notes, and snippets.

@mausch
Created April 7, 2014 20:35
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 mausch/10047439 to your computer and use it in GitHub Desktop.
Save mausch/10047439 to your computer and use it in GitHub Desktop.
calculate :: String -> IO Int
calculate a = return 0 -- dummy placeholder for implementation
update :: String -> IO ()
update a = print ("update " ++ a)
foo :: IO ()
foo = print "foo!"
main = do
let input = "something"
result <- calculate input
update input
foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment