diff options
author | Ian Lynagh <igloo@earth.li> | 2008-08-27 21:32:22 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-08-27 21:32:22 +0000 |
commit | 56f2789e70905b790fc961455bcb9fbe56cc6626 (patch) | |
tree | 3a2516baba03b1e0c641bf89a0f319c377222016 /src/Haddock/DocName.hs | |
parent | 2d80f85846a72a46a3640ac3d8041006c384cad8 (diff) |
Fix some warnings
Diffstat (limited to 'src/Haddock/DocName.hs')
-rw-r--r-- | src/Haddock/DocName.hs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/Haddock/DocName.hs b/src/Haddock/DocName.hs index 66170d8c..7977046c 100644 --- a/src/Haddock/DocName.hs +++ b/src/Haddock/DocName.hs @@ -11,13 +11,9 @@ module Haddock.DocName where -import Haddock.GHC.Utils - import GHC -import OccName import Name import Binary -import Outputable data DocName = Documented Name Module | Undocumented Name @@ -33,10 +29,10 @@ docNameOrig (Undocumented name) = name instance Binary DocName where - put_ bh (Documented name mod) = do + put_ bh (Documented name modu) = do putByte bh 0 put_ bh name - put_ bh mod + put_ bh modu put_ bh (Undocumented name) = do putByte bh 1 put_ bh name @@ -46,8 +42,9 @@ instance Binary DocName where case h of 0 -> do name <- get bh - mod <- get bh - return (Documented name mod) + modu <- get bh + return (Documented name modu) 1 -> do name <- get bh return (Undocumented name) + _ -> error "get DocName: Bad h" |