Re: Kind error in GHC-7.4.1, works in GHC-7.2.2

2012-02-12 Thread Roel van Dijk
Thank you for the explanation. I now understand the problem. I have rewritten the code using some parenthesis. Thanks, Roel 2012/2/10 Simon Peyton-Jones : > It should not have worked before.  Consider > >        I#  $   3# > > ($) is a polymorphic function and takes two *pointer* arguments.  If w

RE: Kind error in GHC-7.4.1, works in GHC-7.2.2

2012-02-10 Thread Simon Peyton-Jones
| Subject: Kind error in GHC-7.4.1, works in GHC-7.2.2 | | Hello, | | I have some code that compiled fine in GHC-7.2.2 but fails in | GHC-7.4.1 with a kind error. | | | {-# LANGUAGE MagicHash, NoImplicitPrelude, PackageImports #-} | import "base" Data.Function ( ($) ) | import "

Kind error in GHC-7.4.1, works in GHC-7.2.2

2012-02-09 Thread Roel van Dijk
Hello, I have some code that compiled fine in GHC-7.2.2 but fails in GHC-7.4.1 with a kind error. {-# LANGUAGE MagicHash, NoImplicitPrelude, PackageImports #-} import "base" Data.Function ( ($) ) import "base" GHC.Exts ( Int(I#) ) import "base" Prelude ( Integral, fromIntegral, toInteger ) impor

RE: Type error in GHC-7 but not in GHC-6.12.3

2010-11-01 Thread Simon Peyton-Jones
.dijk@gmail.com] | Sent: 30 October 2010 00:58 | To: glasgow-haskell-users@haskell.org | Cc: Simon Peyton-Jones | Subject: Re: Type error in GHC-7 but not in GHC-6.12.3 | | On Fri, Oct 29, 2010 at 5:42 PM, Simon Peyton-Jones | wrote: | > That looks odd. | > | > Can you isolate

RE: Type error in GHC-7 but not in GHC-6.12.3

2010-11-01 Thread Simon Peyton-Jones
why you encountered the puzzling behaviour you describe below. Simon | -Original Message- | From: Bas van Dijk [mailto:v.dijk@gmail.com] | Sent: 30 October 2010 21:14 | To: glasgow-haskell-users@haskell.org | Cc: Simon Peyton-Jones | Subject: Re: Type error in GHC-7 but not in GHC-6.

Re: Type error in GHC-7 but not in GHC-6.12.3

2010-10-31 Thread Bas van Dijk
(resending this to the list because this failed yesterday because of the mailinglist downtime) On Sat, Oct 30, 2010 at 1:57 AM, Bas van Dijk wrote: > I could isolate it a bit more if you want. And so I did. The following is another instance of the problem I'm having but set in a more familiar se

Re: Type error in GHC-7 but not in GHC-6.12.3

2010-10-29 Thread Bas van Dijk
On Fri, Oct 29, 2010 at 5:42 PM, Simon Peyton-Jones wrote: > That looks odd. > > Can you isolate it for us?  The easiest thing is usually to start with the > offending code: > withDeviceWhich ∷ >  ∀ pr α >  . MonadCatchIO pr >  ⇒ USB.Ctx >  → (USB.DeviceDesc → Bool) >  → (∀ s. RegionalDeviceHandl

Type error in GHC-7 but not in GHC-6.12.3

2010-10-29 Thread Bas van Dijk
Hello, I'm updating my usb-safe package for GHC-7: darcs get http://code.haskell.org/~basvandijk/code/usb-safe It depends on the HEAD version of regions: darcs get http://code.haskell.org/~basvandijk/code/regions I think I'm suffering from the new implied MonoLocalBinds extension (I'm using GAD

Re: Linking error in GHC 6.4.2 snapshot of 21 April (mingw).

2006-04-24 Thread Cyril Schmidt
This solves the problem, thanks! Cyril Simon Marlow wrote: > Cyril Schmidt wrote: >> When I downloaded and unpacked the latest GHC snapshot of the STABLE >> branch for Windows (ghc-6.4.2.20060421-i386-unknown-mingw32.tar.gz), >> I got the following error trying to start GHCi: >> >> Loading packag

Re: Linking error in GHC 6.4.2 snapshot of 21 April (mingw).

2006-04-24 Thread Simon Marlow
Cyril Schmidt wrote: When I downloaded and unpacked the latest GHC snapshot of the STABLE branch for Windows (ghc-6.4.2.20060421-i386-unknown-mingw32.tar.gz), I got the following error trying to start GHCi: ___ ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive,

Linking error in GHC 6.4.2 snapshot of 21 April (mingw).

2006-04-24 Thread Cyril Schmidt
When I downloaded and unpacked the latest GHC snapshot of the STABLE branch for Windows (ghc-6.4.2.20060421-i386-unknown-mingw32.tar.gz), I got the following error trying to start GHCi: ___ ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.4.2, for Has

Re: Error in GHC

2006-01-19 Thread Tays Soares
Thanks Lemmih. I already fixed this error. The module declaration in my Main file was giving it a wrong name (not Main).Thank you. Lemmih <[EMAIL PROTECTED]> escreveu: On 1/18/06, Tays Soares wrote:> I'm trying to run the following sequence on ghc 6.4:> > ghc -fglasgow-exts --make Main>> > g

Re: Error in GHC

2006-01-18 Thread Lemmih
On 1/18/06, Tays Soares <[EMAIL PROTECTED]> wrote: > I'm trying to run the following sequence on ghc 6.4: > > ghc -fglasgow-exts --make Main > > > ghc -o exec Main.o Exemplo1.o > > But I always get this error message after the second command: > /usr/lib/ghc-6.4/libHSrts.a(Main.o)(.text+0xe): In f

Error in GHC

2006-01-18 Thread Tays Soares
 I'm trying to run the following sequence on ghc 6.4: > ghc -fglasgow-exts --make Main> ghc -o exec Main.o Exemplo1.oBut I always get this error message after the second command:/usr/lib/ghc-6.4/libHSrts.a(Main.o)(.text+0xe): In function `main':: undefined reference to `__stginit_ZCMain'/usr/lib/g