classes and template haskell (bug?)

2003-12-30 Thread Jeremy Shaw
Hello, I have loaded the following from a file into ghci 6.2: module Main where import Language.Haskell.THSyntax class Test a where test :: a -> a instance Test (a,b,c) where test x = x main = putStrLn "Hello, World!" This works for me: *Main> runQ [d| instance Test (Int,Int) |] >>

RE: classes and template haskell (bug?)

2003-12-31 Thread Simon Peyton-Jones
/~simonpj/tmp/notes2.ps Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-users- | [EMAIL PROTECTED] On Behalf Of Jeremy Shaw | Sent: 31 December 2003 02:19 | To: [EMAIL PROTECTED] | Subject: classes and template haskell (bug?) | | Hello, | | I have loaded the

Re: classes and template haskell (bug?)

2003-12-31 Thread Jeremy Shaw
ent programming interface > too -- see > http://research.microsoft.com/~simonpj/tmp/notes2.ps > > Simon > > | -Original Message- > | From: [EMAIL PROTECTED] > [mailto:glasgow-haskell-users- > | [EMAIL PROTECTED] On Behalf Of Jeremy Shaw > | Sent: 31 Decembe

Re: classes and template haskell (bug?)

2004-01-01 Thread Jeremy Shaw
; http://research.microsoft.com/~simonpj/tmp/notes2.ps > > Simon > > | -Original Message- > | From: [EMAIL PROTECTED] > [mailto:glasgow-haskell-users- > | [EMAIL PROTECTED] On Behalf Of Jeremy Shaw > | Sent: 31 December 2003 02:19 > | To: [EMAIL PROTECTED] > | Sub

Re: classes and template haskell (bug?)

2004-01-02 Thread Sven Panne
Jeremy Shaw wrote: I attempted to build cvs head but it died with the following error: /usr/bin/ghc6 -H16m -O -istage1/utils -istage1/basicTypes -istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/specialise -istag

RE: classes and template haskell (bug?)

2004-01-05 Thread Simon Peyton-Jones
users- | [EMAIL PROTECTED] On Behalf Of Jeremy Shaw | Sent: 02 January 2004 04:35 | To: [EMAIL PROTECTED] | Subject: Re: classes and template haskell (bug?) | | Hello, | | No dice. Using cvs head from 12/31, I get the same behavior, (plus a | new bug). Using the same test as before (after updatin