
Hi Cafe, for those who are not following planet haskell: I uploaded a module providing a template haskell solution to the configuration problem to hackage: http://hackage.haskell.org/package/seal-module It turns the style you prefer to write in (pure code that uses configuration values as if they were global constants) into the style that is semantically correct (pure code with configuration values as an additional parameter). The module is well documented, so as soon as hackage has built the documentation you can read how it works on http://hackage.haskell.org/packages/archive/seal-module/0.1.0.1/doc/html/Lan... BTW: Is there a way to avoid having to indent a declarations passed to a top-level splice? Currently, one has to write: splice [d| some = declaration |] but splice [d| some = declaration |] would be nicer. Greetings, Joachim -- Joachim "nomeata" Breitner mail: mail@joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C JID: nomeata@joachim-breitner.de | http://www.joachim-breitner.de/ Debian Developer: nomeata@debian.org
participants (1)
-
Joachim Breitner