Here's something I knocked up: it's both a literate Haskell program and a HTML file describing the JPEG file format