aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Backends/Hoogle.hs
diff options
context:
space:
mode:
authorNeil Mitchell <unknown>2008-08-18 12:52:43 +0000
committerNeil Mitchell <unknown>2008-08-18 12:52:43 +0000
commitdd31867c5cbfacda8dfb18acf8fba1923c5ddff1 (patch)
treebc09f1366e7da49de90d5fa8511c84239450be84 /src/Haddock/Backends/Hoogle.hs
parent46facf59de95110544eed3a62d18c1327a0c479f (diff)
Use the same method to put out signatures as class methods in the Hoogle backend
Diffstat (limited to 'src/Haddock/Backends/Hoogle.hs')
-rw-r--r--src/Haddock/Backends/Hoogle.hs2
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