"D. Tweed" wrote:
> [...] The disadvantage of this kind of scheme for haskell is that
> there's no way to get a user setable global variable without
> everything going monadic (or you use an unsafe operation) [...]
You've already hinted at this, but anyway: After an initialization
phase (reading in the global translation table) lookup is a "normal"
function, i.e. the translations remain unchanged. IIRC there was a
similar discussion about commandline arguments some time ago. This
is such a common pattern that there should be a nicer way to handle
it apart from the usual unsafePerformIO-plus-noInline-trickery at
the top level.
Cheers,
Sven
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne