Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (34 sloc) 1.667 kB

Template Haskell and Camlp4 Tutorial

Hi and welcome to the tutorial! Here are some local resources:

OCaml

Exercises:

Haskell

Loading TH in GHCi:

GHCI> :set -XTemplateHaskell

Hint to show code:

printQ :: Ppr a => Q a -> IO ()

printQ x = putStrLn . pprint =<< runQ x

And then:

printQ [e| [42,43] |]

Exercises:

Other

Jump to Line
Something went wrong with that request. Please try again.