The first release of binembed, a tool to embed data into object files with higher level interfaces to access from languages such as C and Haskell with more to come (patches welcome), is installable from Hackage:
cabal install binembed
After you have installed it, you can try it out by installing an example from Hackage:
cabal install binembed-example binembed-example
which will print out the sources for an example. Run:
cabal unpack binembed-example cd binembed-example-0.1 make ./binembed-example
to get the sources in a more digestable format and try out the C implementation.