[Haskell-beginners] Haskell Preprocessor?

Rahul Kapoor rk at trie.org
Wed Sep 24 22:06:31 EDT 2008


> 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.

Why not a  simple definition:

somename = 1

Cheers,
Rahul


More information about the Beginners mailing list