By making it a library haddock can work on it. Alternatively, we can write them as .lhs. Once we do that we should be able to integrate the examples directly on the streamly website.