diff options
author | David Lazar <lazar6@illinois.edu> | 2013-04-04 23:01:15 -0700 |
---|---|---|
committer | David Lazar <lazar6@illinois.edu> | 2013-04-04 23:01:15 -0700 |
commit | 100f8df43eb2dcef9ccbc02fbcca576d77467740 (patch) | |
tree | 58a7a38f7fac15cdfc41691b157fd3355d3c714c /src/Text | |
parent | 7e4290561df141cef59b63400130d4495042408d (diff) | |
download | pandoc-100f8df43eb2dcef9ccbc02fbcca576d77467740.tar.gz |
Haddock reader: derive Show for Token, making debugging easier.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/Haddock/Lex.x | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Haddock/Lex.x b/src/Text/Pandoc/Readers/Haddock/Lex.x index a84204e83..120e96ebf 100644 --- a/src/Text/Pandoc/Readers/Haddock/Lex.x +++ b/src/Text/Pandoc/Readers/Haddock/Lex.x @@ -131,7 +131,7 @@ data Token | TokExamplePrompt String | TokExampleExpression String | TokExampleResult String --- deriving Show + deriving Show tokenPos :: LToken -> (Int, Int) tokenPos t = let AlexPn _ line col = snd t in (line, col) |