[Haskell-cafe] hsb2hs preprocessor looking for a maintainer

Joachim Breitner mail at joachim-breitner.de
Wed Aug 4 02:42:14 EDT 2010


out of a discussion in haskell-devscripts, John MacFarlane wrote a very
nice tool, called hsb2hs, that allows you to include any binary (or
text) file as a constant in your program. This can be useful in various
instances, e.g. when creating programs that should not depend on data
files installed in the right location, or larger, multi-line strings
that you’d like to edit on their own, not as a long string constant in
the Haskell file (I once wished I had this when including some CSS in a
CGI script written in Haskell).

The current code is on http://github.com/jgm/hsb2hs and you can read
more about it in the subthread starting at

Unfortunately, John says that he does not have time to develop it
further, and I probably don’t either. Is there anyone here interested in
picking up the projects?

Possible TODOs involve the optimization I suggested in
and making Cabal support .hsb files directly (just as with .y etc.


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/20100804/93e22d90/attachment.bin

More information about the Haskell-Cafe mailing list