[Haskell-cafe] ANNOUNCE: seal-module
Joachim Breitner
mail at joachim-breitner.de
Mon Nov 8 04:37:54 EST 2010
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: mail at joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C
JID: nomeata at joachim-breitner.de | http://www.joachim-breitner.de/
Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20101108/21a5744f/attachment.bin
More information about the Haskell-Cafe
mailing list