diff options
author | Isaac Dupree <id@isaac.cedarswampstudios.org> | 2009-08-23 21:52:48 +0000 |
---|---|---|
committer | Isaac Dupree <id@isaac.cedarswampstudios.org> | 2009-08-23 21:52:48 +0000 |
commit | 6a08e15d7cb5b8cb60a70092447b8f445fbfe261 (patch) | |
tree | 57821f55c308260a847fec24412cc551f15ba3d8 /src | |
parent | 343da22f6ad9a54cf2f9243af55a00f31581c474 (diff) |
bugfix: restore fnArgDocs for type-synonyms
Diffstat (limited to 'src')
-rw-r--r-- | src/Haddock/Interface/ExtractFnArgDocs.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Haddock/Interface/ExtractFnArgDocs.hs b/src/Haddock/Interface/ExtractFnArgDocs.hs index c5198598..0a6a05de 100644 --- a/src/Haddock/Interface/ExtractFnArgDocs.hs +++ b/src/Haddock/Interface/ExtractFnArgDocs.hs @@ -27,6 +27,7 @@ import GHC getDeclFnArgDocs :: HsDecl Name -> Map Int HsDocString getDeclFnArgDocs (SigD (TypeSig _ ty)) = getTypeFnArgDocs ty getDeclFnArgDocs (ForD (ForeignImport _ ty _)) = getTypeFnArgDocs ty +getDeclFnArgDocs (TyClD (TySynonym {tcdSynRhs = ty})) = getTypeFnArgDocs ty getDeclFnArgDocs _ = Map.empty getSigFnArgDocs :: Sig Name -> Map Int HsDocString |