What is the easiest and/or best way to define global "constants" in Haskell (avoiding any side effects, of course). The functionality I'm thinking of is similar to the use of global "const" variables or #defines in C code.
ghc at least *should* be smart enough to take
a = 5
and optimize all uses of "a" away via inlining, giving you a constant declarator.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com