From 5b746d714494d37fb3d014890c213aca2de40730 Mon Sep 17 00:00:00 2001 From: David Waern Date: Fri, 22 Jan 2010 22:12:14 +0000 Subject: Follow move of parser and lexer --- src/Haddock/Interface/ParseModuleHeader.hs | 8 ++++---- 1 file 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, -- cgit v1.2.3