diff options
author | Ian Lynagh <igloo@earth.li> | 2012-02-16 13:01:27 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-02-16 13:40:11 +0000 |
commit | 910e35147c999128db5b05585d0f76b02ae2b028 (patch) | |
tree | 596bc7f153c82b75b28f05ddf600a97289827a19 /src/Haddock/Interface/Rename.hs | |
parent | 826c95646493284ab3c7c07ba159e959c760983c (diff) |
Follow changes in GHC caused by the CAPI CTYPE pragma
Diffstat (limited to 'src/Haddock/Interface/Rename.hs')
-rw-r--r-- | src/Haddock/Interface/Rename.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Haddock/Interface/Rename.hs b/src/Haddock/Interface/Rename.hs index 9595e4cc..4c840807 100644 --- a/src/Haddock/Interface/Rename.hs +++ b/src/Haddock/Interface/Rename.hs @@ -320,7 +320,7 @@ renameTyClD d = case d of -- return (TyFamily flav lname' ltyvars' kind' tckind) return (TyFamily flav lname' ltyvars' tckind') - TyData x lcontext lname ltyvars typats k cons _ -> do + TyData x lcontext lname cType ltyvars typats k cons _ -> do lcontext' <- renameLContext lcontext lname' <- renameL lname ltyvars' <- mapM renameLTyVarBndr ltyvars @@ -328,14 +328,14 @@ renameTyClD d = case d of k' <- renameMaybeLKind k cons' <- mapM renameLCon cons -- I don't think we need the derivings, so we return Nothing - return (TyData x lcontext' lname' ltyvars' typats' k' cons' Nothing) + return (TyData x lcontext' lname' cType ltyvars' typats' k' cons' Nothing) - TySynonym lname ltyvars typats ltype -> do + TySynonym lname cType ltyvars typats ltype -> do lname' <- renameL lname ltyvars' <- mapM renameLTyVarBndr ltyvars ltype' <- renameLType ltype typats' <- mapM (mapM renameLType) typats - return (TySynonym lname' ltyvars' typats' ltype') + return (TySynonym lname' cType ltyvars' typats' ltype') ClassDecl lcontext lname ltyvars lfundeps lsigs _ ats at_defs _ -> do lcontext' <- renameLContext lcontext |