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
| 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 "
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
.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
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.
(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
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
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
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
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,
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
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
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
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
14 matches
Mail list logo