diff options
author | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2014-11-04 04:09:44 +0000 |
---|---|---|
committer | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2014-11-04 04:09:44 +0000 |
commit | fc462513143aa0ec3fbed879a3483e376173d9fc (patch) | |
tree | 6c6b5e8d4b4a9e09f4a7eabc2f902e39037d0f66 /haddock-api/src/Haddock/Interface/Create.hs | |
parent | 267e2c2e8226790f5d294ac06941ac5498608db4 (diff) |
Fix warnings
Diffstat (limited to 'haddock-api/src/Haddock/Interface/Create.hs')
-rw-r--r-- | haddock-api/src/Haddock/Interface/Create.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/haddock-api/src/Haddock/Interface/Create.hs b/haddock-api/src/Haddock/Interface/Create.hs index 047960c6..00c119fa 100644 --- a/haddock-api/src/Haddock/Interface/Create.hs +++ b/haddock-api/src/Haddock/Interface/Create.hs @@ -620,8 +620,8 @@ hiDecl dflags t = do return Nothing Just x -> case tyThingToLHsDecl x of Left m -> liftErrMsg (tell [bugWarn m]) >> return Nothing - Right (m, t) -> liftErrMsg (tell $ map bugWarn m) - >> return (Just $ noLoc t) + Right (m, t') -> liftErrMsg (tell $ map bugWarn m) + >> return (Just $ noLoc t') where warnLine x = O.text "haddock-bug:" O.<+> O.text x O.<> O.comma O.<+> O.quotes (O.ppr t) O.<+> |