RE: 6.8 unable to derive with higher-kinded variable (6.6 could)

2008-04-18 Thread Simon Peyton-Jones
| GHC 6.8 seems unable to derive (some?) instances for data types with | higher-kinded variables. GHC 6.6 manages these just fine. See below. | data T w = T (w Bool) deriving (Show) | data ID x = ID x deriving (Show) | main = print (T (ID False)) Look at the instance declaration you'd get

Error Interpreting Main with API

2008-04-18 Thread C.M.Brown
Hello, I am trying to use the API to interpret a Main module and get some type information from it. However, everytime I try to load a Main.hs module using the API I get the following error message: /usr/local/packages/ghc-6.8.2/lib/ghc-6.8.2/libHSrts.a(Main.o): In function `real_main':

help with an intriguing problem

2008-04-18 Thread Liang Guang
Hi! the ghc compiler keeps complaing can't find module 'Char', perhaps you haven't installed the profiling libraries for package haskell98?. but actually I did install it, and i checked with ghc -v , it is right there: wired-in package haskell98 mapped to haskell98-1.0.1.0, and

Re: help with an intriguing problem

2008-04-18 Thread Don Stewart
jimmyguang2005: Hi! the ghc compiler keeps complaing can't find module 'Char', perhaps you haven't installed the profiling libraries for package haskell98?. but actually I did install it, and i checked with ghc -v , it is right there: wired-in package haskell98 mapped

Re: help with an intriguing problem

2008-04-18 Thread Daniel Fischer
Am Freitag, 18. April 2008 22:14 schrieb Liang Guang: Hi! the ghc compiler keeps complaing can't find module 'Char', perhaps you haven't installed the profiling libraries for package haskell98?. but actually I did install it, and i checked with ghc -v , it is right there: wired-in

Re: help with an intriguing problem

2008-04-18 Thread Liang Guang
Thanks! It is a very helpful hint.. I didnot find the profiling library for ghc-6.8.2, so I installed ghc661-prof, but the yum ( i use fedora 8) installed the latest ghc-6.8.2, so they end up in different directories.. now it is working. Cheers, Liang Daniel Fischer [EMAIL