aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock
diff options
context:
space:
mode:
authorDavid Waern <david.waern@gmail.com>2008-11-06 21:51:31 +0000
committerDavid Waern <david.waern@gmail.com>2008-11-06 21:51:31 +0000
commit27376c681ce1efcef87b320ff1bc1587ea7437af (patch)
treeab9e36c80e6431ae8eb3859d7ac9a2ef8f21604d /src/Haddock
parent41afec2520ce926dcd04da1024facb4e6e4cde4e (diff)
Fix warnings in H.InterfaceFile and H.Options
Diffstat (limited to 'src/Haddock')
-rw-r--r--src/Haddock/InterfaceFile.hs3
-rw-r--r--src/Haddock/Options.hs4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/Haddock/InterfaceFile.hs b/src/Haddock/InterfaceFile.hs
index 19aaf7a6..62f19275 100644
--- a/src/Haddock/InterfaceFile.hs
+++ b/src/Haddock/InterfaceFile.hs
@@ -37,9 +37,10 @@ import Module
import HscTypes
import FastMutInt
import HsDoc
+#if __GLASGOW_HASKELL__ >= 609
import FastString
import Unique
-
+#endif
data InterfaceFile = InterfaceFile {
ifLinkEnv :: LinkEnv,
diff --git a/src/Haddock/Options.hs b/src/Haddock/Options.hs
index a55b7a9b..09ce47fe 100644
--- a/src/Haddock/Options.hs
+++ b/src/Haddock/Options.hs
@@ -29,8 +29,8 @@ getUsage = do
parseHaddockOpts :: [String] -> IO ([Flag], [String])
-parseHaddockOpts words =
- case getOpt Permute (options True) words of
+parseHaddockOpts params =
+ case getOpt Permute (options True) params of
(flags, args, []) -> return (flags, args)
(_, _, errors) -> do
usage <- getUsage