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/Language-Haskell-SealModule.html
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: [email protected] | ICQ# 74513189 | GPG-Key: 4743206C JID: [email protected] | http://www.joachim-breitner.de/ Debian Developer: [email protected]
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
