jamie.love:
Hi there,
Not sure where to raise bugs in hackage libraries, so I'm posting here.
If there is a better place, please let me know.
The following code crashes with a divide by zero error when using the
package 'binary-0.4.'
Oh, hehe. \x - x `mod` 256 doesn't work if x ::
Hi there,
Not sure where to raise bugs in hackage libraries, so I'm posting here.
If there is a better place, please let me know.
The following code crashes with a divide by zero error when using the
package 'binary-0.4.'
module Main where
import IO
import Data.Binary
import
jamie.love:
Hi there,
Not sure where to raise bugs in hackage libraries, so I'm posting here.
If there is a better place, please let me know.
The following code crashes with a divide by zero error when using the
package 'binary-0.4.'
Can you repeat this with binary 0.4.1 please?
(And
On Jan 28, 2008, at 17:33 , Jamie Love wrote:
Shouldn't haskell pick up that there is no 'mod' for Word8? I
mean, shouldn't I get a nicer error message?
Hm? mod works fine for Word8, unless you specify a multiple of the
type's bound. I think it's still hard for compilers to catch that
jamie.love:
Ah, of course.
Thanks. I removed the hPut and it runs smoothly. I had forgotten that
haskell chooses the types dynamically.
Shouldn't haskell pick up that there is no 'mod' for Word8? I mean,
shouldn't I get a nicer error message?
Well, it inferred Word8 for
Oh, I see
I wasn't thinking through the code (and I'm still in the honeymoon phase
with Haskell, thinking it can do no wrong).
Don Stewart wrote:
jamie.love:
Ah, of course.
Thanks. I removed the hPut and it runs smoothly. I had forgotten that
haskell chooses the types
Ah, of course.
Thanks. I removed the hPut and it runs smoothly. I had forgotten that
haskell chooses the types dynamically.
Shouldn't haskell pick up that there is no 'mod' for Word8? I mean,
shouldn't I get a nicer error message?
Don Stewart wrote:
jamie.love:
Hi there,
Not sure
Just to clarify, I know it was my mistake, and so I'm not blaming
Haskell or Ghc. The first few times you realise the compiler isn't a
magic wand that stops you being silly are the hardest.
Jamie Love wrote:
Oh, I see
I wasn't thinking through the code (and I'm still in the honeymoon
I should point out that this is on GHC 6.8.2 compiled from source on a
Mac powerpc.
Jamie Love wrote:
Hi there,
Not sure where to raise bugs in hackage libraries, so I'm posting
here. If there is a better place, please let me know.
The following code crashes with a divide by zero error
Brandon S. Allbery KF8NH wrote:
On Jan 28, 2008, at 17:33 , Jamie Love wrote:
Shouldn't haskell pick up that there is no 'mod' for Word8? I mean,
shouldn't I get a nicer error message?
Hm? mod works fine for Word8, unless you specify a multiple of the
type's bound. I think it's still
10 matches
Mail list logo