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

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: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users- | bounces@haskell.org] 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 | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

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: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users- | bounces@haskell.org] 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 | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

I'm going to create a standard dist for cygwin. In order to do so, according to the porting guide I need to build a set of .hc files with mingw32(same hardware) and then use hc-build with those. To create the hc files from mingw32 for use with cygwin I should just have to define toplevel build.mk as follows is that correct? GhcLibHcOpts += -keep-hc-files GhcStage1HcOpts += -keep-hc-files GhcStage2HcOpts += -keep-hc-files and then use 'find' to pull out all of the .hc files. After that It should be fairly simple to get a Cygwin build going right? -Ben
participants (3)
-
Ben Kavanagh
-
S. Alexander Jacobson
-
Simon Peyton-Jones