[Haskell-cafe] Re: Linking and unsafePerformIO
wren ng thornton
wren at freegeek.org
Wed Oct 15 05:30:05 EDT 2008
> What I actually want to use that way are build
> time configs. For instance, 'isThisLibraryThreadSafe'
> or 'maximumNumberOfBigObjects'. Actually, I don't
> know why people allow build time options at all.
> We always use the "best set of options", and the
> alternatives are there just to compel us to check
> for them :)
Why not just have a Haskell module (that defines a number of CAFs) be
your build-time config? Unless there's an important reason to be using
the FFI, this seems like a much simpler approach. Xmonad and Yi use a
similar technique even for load-time constant configurations.
More information about the Haskell-Cafe