diff options
author | David Waern <david.waern@gmail.com> | 2009-11-28 22:16:16 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2009-11-28 22:16:16 +0000 |
commit | 295a27b7558cf4fae144e3cf01e488e54ca961f2 (patch) | |
tree | d549700783fdd1fe3743428278684addd7779f92 /src/Main.hs | |
parent | fba37778cd3eb564c83f1a35e922b8a0a9f111ea (diff) |
Move H.Interface.Parse/Lex to H.Parse/Lex
These are not just used to build Interfaces.
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Main.hs b/src/Main.hs index f09dcd29..1f4867e4 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -22,8 +22,8 @@ module Main (main) where import Haddock.Backends.Html import Haddock.Backends.Hoogle import Haddock.Interface -import Haddock.Interface.Lex -import Haddock.Interface.Parse +import Haddock.Lex +import Haddock.Parse import Haddock.Types import Haddock.Version import Haddock.InterfaceFile @@ -400,7 +400,7 @@ getPrologue flags = [] -> return Nothing [filename] -> do str <- readFile filename - case parseHaddockParagraphs (tokenise str) of + case parseParas (tokenise str) of Nothing -> throwE "parsing haddock prologue failed" Just doc -> return (Just doc) _otherwise -> throwE "multiple -p/--prologue options" |