static constants -- ideas?

Jay Scott jay at satirist.org
Fri Feb 29 14:33:49 EST 2008


Don Stewart dons at galois.com:

>jay:
>> Don Stewart dons at galois.com:
>> >jay:
>> >> Don Stewart dons at galois.com:
>> >> >jay:
>> >> >> I also have constants that are too large to compile. I am resigned to
>> >> >> loading them from data files--other solutions seem even worse.
>> >> ...
>> >> >> Data.Binary eases the irritation somewhat.
>> >> >
>> >> >Did you try bytestring literals (and maybe parsing them in-memory with
>> >> >Data.Binary)?
>> 
>> I finally squeezed enough time to try it, and it didn't work for me.
>
>> 
>> --
>> ghc Overflow.hs
>> [1 of 1] Compiling Overflow         ( Overflow.hs, Overflow.o )
>
>Enable optimisations!  Compile with ghc -O2. You need this to avoid
>having a very slow pack call at runtime.

Yes, I tried basic variations like that. The result is the same with -O1
or with -O2, and with Data.ByteString or Data.ByteString.Lazy .

>> I'm just 2 dum 2 c.
>
>The show function?

Ha ha!

  Jay



More information about the Glasgow-haskell-users mailing list