static constants -- ideas?

Jason Dusek jason.dusek at
Sat Mar 1 02:56:50 EST 2008

Bryan O'Sullivan <bos at> wrote:
> The trick I usually use in cases like this is to compile the
> data as C code and link against it, then access it from
> Haskell via a Ptr.

  For my particular application, I really need to ship a single
  static binary that has it all -- data as well as algorithms --
  so I'm going with the FFI. It's too bad that I end up working
  in the IO monad much of the time. I hope we'll have massive
  static constants someday soon!


More information about the Glasgow-haskell-users mailing list