RE: template haskell printf doesn't compile...

"Simon Peyton-Jones" <[email protected]>
Newsgroups gmane.comp.lang.haskell.template
Message-ID <036EAC76E7F5EC4996A3B3C3657D4116013B90C0@EUR-MSG-21.europe.corp.microsoft.com>
Redirecting this to the Template Haskell mailing list

Guys, can you help Alex?

Simon

| -----Original Message-----
| From: S. Alexander Jacobson [mailto:[email protected]]
| Sent: 03 December 2004 16:59
| To: Simon Peyton-Jones
| Cc: GHC users
| Subject: RE: template haskell printf doesn't compile...
| 
| I was able to use the library documentation to get
| printf to compile.  But I still can't figure out
| how to produce Declarations. Is there a directory
| somewhere with more examples?
| 
| Note this is being used to overhaul my relational
| database code.
| 
| -Alex-
| 
| ______________________________________________________________
| S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com
| 
| 
| 
| On Fri, 3 Dec 2004, Simon Peyton-Jones wrote:
| 
| > Sorry Documentation out of date: consult the library documentation
for
| > up to date info.
| >
| > Change Expr to ExpQ
| > change string to stringE
| >
| > | -----Original Message-----
| > | From: [email protected]
| > [mailto:glasgow-haskell-users-
| > | [email protected]] On Behalf Of S. Alexander Jacobson
| > | Sent: 02 December 2004 20:21
| > | To: GHC users
| > | Subject: template haskell printf doesn't compile...
| > |
| > | 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
| > | _______________________________________________
| > | Glasgow-haskell-users mailing list
| > | [email protected]
| > | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
| > _______________________________________________
| > Glasgow-haskell-users mailing list
| > [email protected]
| > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
| >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.