diff options
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" |