Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8156395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:56:30+00:00 2026-06-06T16:56:30+00:00

What is literate programming? To quote Dr. Knuth: The main idea is to regard

  • 0

What is literate programming? To quote Dr. Knuth:
“The main idea is to regard a program as a communication to human beings rather than as a set of instructions to a computer.”

What are the popular ways to generate haskell application project documentation? Please mention main strength area / key benefits of each method.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T16:56:32+00:00Added an answer on June 6, 2026 at 4:56 pm

    The most common way is to use Haddock markup.

    To do this you start a comment line with -- |. The documentation continues until the next non-comment line:

    -- |This is a doc comment
    --  which continues onto the next line.
    

    If you want to generate links to other parts of the documentation, use single quotes around function names. If you want to specify fixed-width font, enclose text within @ symbols. If you want to specify a code block, start a comment line with -- >.

    Here’s a real-world example taken from the GHC Base source code, which compiles into the documentation seen on this page.

    -- | 'map' @f xs@ is the list obtained by applying @f@ to each element
    -- of @xs@, i.e.,
    --
    -- > map f [x1, x2, ..., xn] == [f x1, f x2, ..., f xn]
    -- > map f [x1, x2, ...] == [f x1, f x2, ...]
    
    map :: (a -> b) -> [a] -> [b]
    map _ []     = []
    map f (x:xs) = f x : map f xs
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Donald Knuth's Literate Programming , there was if I remember correctly a graph
I'm trying to find a good literate programming tool. Let's just say it's not
I've been playing with various ways of doing literate programming in Python. I like
Greetings. I have been looking at Literate Programming a bit now, and I do
Someone had a great idea of combining Literate Haskell and Markdown. Made sense to
So, I used the scribble/lp module to write my first literate program using plt-scheme:
I am on a literate program using org-babel. My source is structured like so,
I just started reading about literate programming and noweb - and I find it
I'm a newbie to Python and programming in general so please excuse me if
From my main.java: Cursor c = db.getDue(); String[] columns = new String[] { _id,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.