[Haddock] [haddock] #140: Support for doctest style usage blocks

haddock haddock at projects.haskell.org
Fri Aug 13 09:35:15 EDT 2010


#140: Support for doctest style usage blocks
------------------------+---------------------------------------------------
Reporter:  ezyang       |        Owner:       
    Type:  enhancement  |       Status:  new  
Priority:  major        |    Milestone:  2.8.0
 Version:  2.6.0        |   Resolution:       
Keywords:               |  
------------------------+---------------------------------------------------
Comment (by waern):

 Replying to [comment:6 simonmar]:
 > `repl>` would look a bit weird if you didn't know what it stood for, and
 if you know what it stands for then it's clutter.  Why not choose a
 generic prompt symbol, e.g. `>>>`, `-->`, or something?

 I'm OK with `>>>`.

 Actually `>` could work as well if disambiguate between code blocks and
 examples based on the fact that all lines must start with `>` in code
 blocks but not in examples (IIRC). What do you think?

-- 
Ticket URL: <http://trac.haskell.org/haddock/ticket/140#comment:7>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool


More information about the Haddock mailing list