aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Interface/ParseModuleHeader.hs
diff options
context:
space:
mode:
authorDavid Waern <david.waern@gmail.com>2010-01-22 22:12:14 +0000
committerDavid Waern <david.waern@gmail.com>2010-01-22 22:12:14 +0000
commit5b746d714494d37fb3d014890c213aca2de40730 (patch)
tree62032d33b79ccda26e6c786117557776f12570c8 /src/Haddock/Interface/ParseModuleHeader.hs
parentf4377331e30be3c4230949ca56711a15568f3c28 (diff)
Follow move of parser and lexer
Diffstat (limited to 'src/Haddock/Interface/ParseModuleHeader.hs')
-rw-r--r--src/Haddock/Interface/ParseModuleHeader.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Haddock/Interface/ParseModuleHeader.hs b/src/Haddock/Interface/ParseModuleHeader.hs
index e74a0aef..dc701f36 100644
--- a/src/Haddock/Interface/ParseModuleHeader.hs
+++ b/src/Haddock/Interface/ParseModuleHeader.hs
@@ -13,8 +13,8 @@
module Haddock.Interface.ParseModuleHeader (parseModuleHeader) where
import Haddock.Types
-import Haddock.Interface.Lex
-import Haddock.Interface.Parse
+import Haddock.Lex
+import Haddock.Parse
import RdrName
@@ -46,13 +46,13 @@ parseModuleHeader str0 =
description1 :: Either String (Maybe (Doc RdrName))
description1 = case descriptionOpt of
Nothing -> Right Nothing
- Just description -> case parseHaddockString . tokenise $ description of
+ Just description -> case parseString . tokenise $ description of
Nothing -> Left ("Cannot parse Description: " ++ description)
Just doc -> Right (Just doc)
in
case description1 of
Left mess -> Left mess
- Right docOpt -> case parseHaddockParagraphs . tokenise $ str8 of
+ Right docOpt -> case parseParas . tokenise $ str8 of
Nothing -> Left "Cannot parse header documentation paragraphs"
Just doc -> Right (HaddockModInfo {
hmi_description = docOpt,