aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Lex.x
diff options
context:
space:
mode:
Diffstat (limited to 'src/Haddock/Lex.x')
-rw-r--r--src/Haddock/Lex.x4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Haddock/Lex.x b/src/Haddock/Lex.x
index e41c9461..153f6677 100644
--- a/src/Haddock/Lex.x
+++ b/src/Haddock/Lex.x
@@ -222,11 +222,7 @@ ident pos str sc cont dflags =
strToHsQNames :: DynFlags -> RealSrcLoc -> String -> Maybe [RdrName]
strToHsQNames dflags loc str0 =
-#if MIN_VERSION_ghc(7,1,0)
let buffer = stringToStringBuffer str0
-#else
- let buffer = unsafePerformIO (stringToStringBuffer str0)
-#endif
pstate = mkPState dflags buffer loc
result = unP parseIdentifier pstate
in case result of