RE: not an instance of Lift?

"Simon Peyton-Jones" <[email protected]> Tue, 5 Apr 2005 07:46:16 +0100
Newsgroups gmane.comp.lang.haskell.template
Message-ID <036EAC76E7F5EC4996A3B3C3657D41160212E0ED@EUR-MSG-21.europe.corp.microsoft.com>
Yes you can make new instances of Lift.  The class itself is defined in
Language.Haskell.TH.Syntax.
Simon

| -----Original Message-----
| From: [email protected]
[mailto:[email protected]] On
| Behalf Of WANG Meng
| Sent: 05 April 2005 05:20
| To: [email protected]
| Subject: [Template-haskell] not an instance of Lift?
| 
| Hi All,
| 
| When I am trying to define the following program:
| 
| test x = [|x|]
| y = test (Just True)
| 
| The compiler will complain that Maybe Bool is not an instance of Lift.
| 
| Is there any way to resolve this? Can I add instances to the class
Lift?
| 
| 
|  -W-M-
|   @ @
|    |
|   \_/
| _______________________________________________
| template-haskell mailing list
| [email protected]
| http://www.haskell.org/mailman/listinfo/template-haskell