diff options
| author | Alan Zimmerman <alan.zimm@gmail.com> | 2015-12-05 17:33:52 +0200 | 
|---|---|---|
| committer | Alan Zimmerman <alan.zimm@gmail.com> | 2015-12-05 17:33:52 +0200 | 
| commit | 222954753de7a8a3708baff1d75a4b7c3a675f4b (patch) | |
| tree | b401b755a1961048001dd36e622cac0526b5a1d6 /haddock-api/src/Haddock/GhcUtils.hs | |
| parent | a6deefad581cbeb62048826bc1d626c41a0dd56c (diff) | |
Matching changes for #11028
Diffstat (limited to 'haddock-api/src/Haddock/GhcUtils.hs')
| -rw-r--r-- | haddock-api/src/Haddock/GhcUtils.hs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/haddock-api/src/Haddock/GhcUtils.hs b/haddock-api/src/Haddock/GhcUtils.hs index 49d6a420..ab4d6c78 100644 --- a/haddock-api/src/Haddock/GhcUtils.hs +++ b/haddock-api/src/Haddock/GhcUtils.hs @@ -188,14 +188,14 @@ class Parent a where  instance Parent (ConDecl Name) where    children con = -    case con_details con of +    case getConDetails con of        RecCon fields -> map (selectorFieldOcc . unL) $                           concatMap (cd_fld_names . unL) (unL fields)        _             -> []  instance Parent (TyClDecl Name) where    children d -    | isDataDecl  d = map unL $ concatMap (con_names . unL) +    | isDataDecl  d = map unL $ concatMap (getConNames . unL)                                $ (dd_cons . tcdDataDefn) $ d      | isClassDecl d =          map (unL . fdLName . unL) (tcdATs d) ++ @@ -209,7 +209,7 @@ family = getName &&& children  familyConDecl :: ConDecl Name -> [(Name, [Name])] -familyConDecl d = zip (map unL (con_names d)) (repeat $ children d) +familyConDecl d = zip (map unL (getConNames d)) (repeat $ children d)  -- | A mapping from the parent (main-binder) to its children and from each  -- child to its grand-children, recursively. | 
