Skip to content

Instantly share code, notes, and snippets.

@gelisam
Last active October 5, 2017 10:09
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gelisam/0549eb2a292f86ca2574 to your computer and use it in GitHub Desktop.
Save gelisam/0549eb2a292f86ca2574 to your computer and use it in GitHub Desktop.
Demonstrating how to use the Haxl library.
import Haxl.Core
-- |
-- >>> main
-- 42
main :: IO ()
main = do
myEnv <- emptyEnv ()
r <- runHaxl myEnv (return 42)
print r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment