[GHC] #13438: ghci :browse does not work with DuplicateRecordFields
GHC
ghc-devs at haskell.org
Fri Mar 17 15:35:13 UTC 2017
#13438: ghci :browse does not work with DuplicateRecordFields
-------------------------------------+-------------------------------------
Reporter: rik | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 8.0.2
Resolution: | Keywords:
| duplicaterecordfields ghci
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Description changed by rik:
Old description:
> Using `:browse` on module which has enabled DuplicateRecordFields and
> datatypes are exported, does not return the field accessor functions.
>
> So for example:
> {{{#!hs
> data Login = Login
> { code :: Text
> , password :: Text
> }
> )}}}
>
> `browse` for module does not return `code` and `password` accessor
> functions.
New description:
Using `:browse` on module which has enabled DuplicateRecordFields and
datatypes are exported, does not return the field accessor functions.
So for example:
{{{#!hs
data Login = Login
{ code :: Text
, password :: Text
}
}}}
`browse` for module does not return `code` and `password` accessor
functions.
--
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13438#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list