[Haddock] [haddock] #20: We don't handle non-ASCII characters in doc comments

haddock haddock at projects.haskell.org
Sun Nov 25 07:53:29 GMT 2012


#20: We don't handle non-ASCII characters in doc comments
-------------------+--------------------------------------------------------
Reporter:  waern   |        Owner:     
    Type:  defect  |       Status:  new
Priority:  major   |    Milestone:     
 Version:          |   Resolution:     
Keywords:          |  
-------------------+--------------------------------------------------------

Comment(by adzeitor):

 Replying to [comment:14 SimonHengel]:
 > I can reproduce this with Haddock 2.9.2,  the version of Haddock that
 ships with GHC 7.4.0.20111219 produces proper HTML entities for codepoints
 outside the ASCII range.
 >
 > Are there still any issues left?  And if yes, how would a minimal test
 case look like?

 Haddock version 2.12.0

 {{{
 -- | Это модуль mytime
 module MyTime (Time(..),testFunc) where


 -- ^  Тип данных время
 data Time = Time{ hour :: Int -- ^ Часы
                 , mins  :: Int -- ^ Минуты
                 }
           deriving(Show)

 -- |Тестовая функция, которая всегда возвращает 42
 testFunc :: String -- ^ строка
             -> Int -- ^ возвращает число
 testFunc x = 42
 }}}

 {{{
 $ haddock 3.hs -html
 Haddock coverage:
 doc comment parse failed:   Тип данных время
 doc comment parse failed: Тестовая функция, которая всегда возвращает 42
 doc comment parse failed:  строка
 doc comment parse failed:  возвращает число
   33% (  1 /  3) in 'MyTime'
 }}}

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


More information about the Haddock mailing list