[Haskell-cafe] Crash in Data.ByteString.Lazy.hPut

Stephan Friedrichs stephan.friedrichs at tu-bs.de
Tue Jan 29 01:51:58 EST 2008


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 hard for compilers to catch that for 
> you 

Finding out if a variable will have a value of 0 is undecidable at 
compile time, isn't it?

//Stephan

-- 

Früher hieß es ja: Ich denke, also bin ich.
Heute weiß man: Es geht auch so.

  - Dieter Nuhr


More information about the Haskell-Cafe mailing list