aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock
diff options
context:
space:
mode:
authorDavid Waern <david.waern@gmail.com>2010-07-24 15:33:33 +0000
committerDavid Waern <david.waern@gmail.com>2010-07-24 15:33:33 +0000
commit02ad09def3e3fe962468523c0ea17446b5a890f1 (patch)
tree43a4ffdb075b33031016ba5b6cc9198d3804f926 /src/Haddock
parentb7be72f3058311fbfe1cfa8109e482d32dd44d79 (diff)
Fix build with ghc < 6.13
Diffstat (limited to 'src/Haddock')
-rw-r--r--src/Haddock/Lex.x4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Haddock/Lex.x b/src/Haddock/Lex.x
index a92f4591..766f12ed 100644
--- a/src/Haddock/Lex.x
+++ b/src/Haddock/Lex.x
@@ -184,7 +184,11 @@ ident pos str sc cont dflags =
strToHsQNames :: DynFlags -> String -> Maybe [RdrName]
strToHsQNames dflags str0 =
let buffer = unsafePerformIO (stringToStringBuffer str0)
+#if MIN_VERSION_ghc(6,13,0)
pstate = mkPState dflags buffer noSrcLoc
+#else
+ pstate = mkPState buffer noSrcLoc dflags
+#endif
result = unP parseIdentifier pstate
in case result of
POk _ name -> Just [unLoc name]