[commit: haddock] wip/T9023: Follow change in patSynSig (e04e118)

git at git.haskell.org git at git.haskell.org
Wed Jul 8 08:28:58 UTC 2015


Repository : ssh://git@git.haskell.org/haddock

On branch  : wip/T9023
Link       : http://git.haskell.org/haddock.git/commitdiff/e04e1183698d1bab42d72ccff7314652ab4f8f44

>---------------------------------------------------------------

commit e04e1183698d1bab42d72ccff7314652ab4f8f44
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Jun 6 11:33:09 2014 +0100

    Follow change in patSynSig


>---------------------------------------------------------------

e04e1183698d1bab42d72ccff7314652ab4f8f44
 src/Haddock/Convert.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Haddock/Convert.hs b/src/Haddock/Convert.hs
index f7f3e2b..405bf20 100644
--- a/src/Haddock/Convert.hs
+++ b/src/Haddock/Convert.hs
@@ -94,10 +94,10 @@ tyThingToLHsDecl t = noLoc $ case t of
     (synifyType ImplicitizeForAll (dataConUserType dc)))
 
   AConLike (PatSynCon ps) ->
-      let (_, _, req_theta, prov_theta) = patSynSig ps
+      let (_, _, req_theta, prov_theta, _, res_ty) = patSynSig ps
       in SigD $ PatSynSig (synifyName ps)
                           (fmap (synifyType WithinType) (patSynTyDetails ps))
-                          (synifyType WithinType (patSynType ps))
+                          (synifyType WithinType res_ty)
                           (synifyCtx req_theta)
                           (synifyCtx prov_theta)
 



More information about the ghc-commits mailing list