Literate Haskell (.lhs) and Haddock

Posted by finnsson on Stack Overflow See other posts from Stack Overflow or by finnsson
Published on 2010-04-25T08:39:05Z Indexed on 2010/04/25 8:43 UTC
Read the original article Hit count: 244

At the moment I'm only using Haddock but after seeing some really interesting examples (e.g. this gist ) of literate Haskell I'm interested in trying it out in a project.

The questions I got are:

  • What do you write as Haddock comments and what do you write in the literate part?

  • How do you scale literate programming to multiple files? Can anyone point me to an example where literate programming is used in a package with multiple modules? What is your experience of using literate programming in larger packages?

  • Which flavour (markdown, latex, ...) of literate Haskell is preferred?

  • Why are you programming in literate Haskell or plain vanilla Haskell? Are you programming in both styles and if so why?

  • Do you prefer block-style (\begin{code}) or Bird-style (>)? Why?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about haddock