template haskell printf doesn't compile...

S. Alexander Jacobson alex at alexjacobson.com
Thu Dec 2 15:21:23 EST 2004


Tried to use the printf TH example described in
the GHC docs

http://www.haskell.org/ghc/docs/latest/html/users_guide/template-haskell.html

Got this error:

  Chasing modules from: PrintMain.hs
  Compiling Printf           ( ./Printf.hs, ./Printf.o )

  ./Printf.hs:23: Type constructor or class not in scope: `Expr'

  ./Printf.hs:26: Variable not in scope: `string'
  ./Printf.hs:30: Type constructor or class not in scope: `Expr'

Any clues?

-Alex-

______________________________________________________________
S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com


More information about the Glasgow-haskell-users mailing list