[Haddock] [haddock] #203: very difficult to list pragmas in haddock code blocks

haddock haddock at projects.haskell.org
Sat Apr 28 15:48:03 BST 2012


#203: very difficult to list pragmas in haddock code blocks
-----------------------+----------------------------------------------------
Reporter:  JeremyShaw  |        Owner:        
    Type:  defect      |       Status:  new   
Priority:  minor       |    Milestone:  2.10.0
 Version:  2.9.4       |   Resolution:        
Keywords:              |  
-----------------------+----------------------------------------------------

Comment(by SimonHengel):

 That's weird, it seems to me that this only happens if you use {{{{- ...
 -}}}}-style comments.

 I think the following can be used to work around this (for now).

 {{{
 -- |
 -- > {-# LANGUAGE QuasiQuotes #-}
 -- > import Data.Char        (toUpper)
 -- > import HSX.QQ           (hsx)
 -- > import HSX.XMLGenerator
 -- >
 -- > html :: (XMLGenerator m) => XMLGenT m (XMLType m)
 -- > html = [hsx| <p><% map toUpper "hello, world!"  %></p> |]
 }}}

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


More information about the Haddock mailing list