diff options
| author | Adam Gundry <adam@well-typed.com> | 2015-10-16 16:26:42 +0100 | 
|---|---|---|
| committer | Adam Gundry <adam@well-typed.com> | 2015-10-16 16:26:42 +0100 | 
| commit | 85b7ed6147c18611b5ef6b606f157086a8203e7d (patch) | |
| tree | 3b87f61a410388ee377bf2e7d822a6f210fa1665 /haddock-api/src/Haddock/GhcUtils.hs | |
| parent | c7a8a8b32c9075873d666f7d0fc8a99828e17344 (diff) | |
Roughly fix up haddock for DuplicateRecordFields changes
This compiles, but will probably need more work to produce good
documentation when the DuplicateRecordFields extension is used.
Diffstat (limited to 'haddock-api/src/Haddock/GhcUtils.hs')
| -rw-r--r-- | haddock-api/src/Haddock/GhcUtils.hs | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/haddock-api/src/Haddock/GhcUtils.hs b/haddock-api/src/Haddock/GhcUtils.hs index 5caefa77..aa9a1c32 100644 --- a/haddock-api/src/Haddock/GhcUtils.hs +++ b/haddock-api/src/Haddock/GhcUtils.hs @@ -189,7 +189,8 @@ class Parent a where  instance Parent (ConDecl Name) where    children con =      case con_details con of -      RecCon fields -> map unL $ concatMap (cd_fld_names . unL) (unL fields) +      RecCon fields -> map (selectorFieldOcc . unL) $ +                         concatMap (cd_fld_names . unL) (unL fields)        _             -> []  instance Parent (TyClDecl Name) where | 
