diff options
author | Neil Mitchell <unknown> | 2008-08-18 12:52:43 +0000 |
---|---|---|
committer | Neil Mitchell <unknown> | 2008-08-18 12:52:43 +0000 |
commit | dd31867c5cbfacda8dfb18acf8fba1923c5ddff1 (patch) | |
tree | bc09f1366e7da49de90d5fa8511c84239450be84 /src | |
parent | 46facf59de95110544eed3a62d18c1327a0c479f (diff) |
Use the same method to put out signatures as class methods in the Hoogle backend
Diffstat (limited to 'src')
-rw-r--r-- | src/Haddock/Backends/Hoogle.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Haddock/Backends/Hoogle.hs b/src/Haddock/Backends/Hoogle.hs index c8336352..6847db92 100644 --- a/src/Haddock/Backends/Hoogle.hs +++ b/src/Haddock/Backends/Hoogle.hs @@ -109,7 +109,7 @@ ppSynonym x = [out x] -- note: does not yet output documentation for class methods ppClass :: TyClDecl Name -> [String] ppClass x = out x{tcdSigs=[]} : - map (out . addContext . unL) (tcdSigs x) + concatMap (ppSig . addContext . unL) (tcdSigs x) where addContext (TypeSig name (L l sig)) = TypeSig name (L l $ f sig) f (HsForAllTy a b con d) = HsForAllTy a b (reL $ context : unL con) d |