2 Dec 2004 18:20
RE: Bug? Unique class names...
Simon Peyton-Jones <simonpj <at> microsoft.com>
2004-12-02 17:20:42 GMT
2004-12-02 17:20:42 GMT
I've just committed a fix for this. SImon | -----Original Message----- | From: template-haskell-bounces <at> haskell.org [mailto:template-haskell-bounces <at> haskell.org] On | Behalf Of Keean Schupke | Sent: 26 November 2004 11:09 | To: Ian Lynagh | Cc: template-haskell <at> haskell.org; Simon Peyton-Jones | Subject: [Template-haskell] Bug? Unique class names... | | Hi, | I am trying to generate classes on the fly... as classes may get | generated more | than once, I want guaranteed unique names (sounds like a job for newName)... | However, whilst the first example works, the second fails: | | >-- this works | >test :: Q [Dec] | >test = do | > k <- newName "k" | > c <- classD (cxt []) (mkName "MyClass") [k] [] [] | > return [c] | | >-- this fails | >test :: Q [Dec] | >test = do(Continue reading)
RSS Feed