aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock
diff options
context:
space:
mode:
authorHenning Thielemann <git@henning-thielemann.de>2012-04-01 20:22:10 +0200
committerHenning Thielemann <git@henning-thielemann.de>2012-04-01 20:22:10 +0200
commite9898d45575458d49eb2119923c8c1adbc581065 (patch)
tree2684ca20f3465eeb19ea031508268ba40c5c3600 /src/Haddock
parent29861370dd56f59557c3bcecd53fba0f88a89792 (diff)
parentfaf1c0231e199206ff26c13f982d853bf81517f3 (diff)
Merge branch 'ghc-7.4' of http://darcs.haskell.org/haddock into ghc-7.4
Diffstat (limited to 'src/Haddock')
-rw-r--r--src/Haddock/Lex.x3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Haddock/Lex.x b/src/Haddock/Lex.x
index f65aee8c..b9ebe688 100644
--- a/src/Haddock/Lex.x
+++ b/src/Haddock/Lex.x
@@ -34,6 +34,7 @@ import Data.Char
import Data.Word (Word8)
import Numeric
import System.IO.Unsafe
+import Debug.Trace
}
$ws = $white # \n
@@ -181,7 +182,7 @@ tokenise dflags str (line, col) = let toks = go (posn, '\n', eofHack str) para i
go inp@(pos, _, str) sc =
case alexScan inp sc of
AlexEOF -> []
- AlexError _ -> error "lexical error"
+ AlexError _ -> []
AlexSkip inp' _ -> go inp' sc
AlexToken inp'@(pos',_,_) len act -> act pos (take len str) sc (\sc -> go inp' sc) dflags