Hi, 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 http://lists.debian.org/debian-haskell/2010/08/msg00013.html 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 http://lists.debian.org/debian-haskell/2010/08/msg00015.html and making Cabal support .hsb files directly (just as with .y etc. files). Greetings, Joachim -- Joachim "nomeata" Breitner mail: m...@joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C JID: nome...@joachim-breitner.de | http://www.joachim-breitner.de/ Debian Developer: nome...@debian.org
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe