[GHC] #13438: ghci :browse does not work with DuplicateRecordFields

GHC ghc-devs at haskell.org
Fri Mar 17 15:33:45 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
           Keywords:                 |  Operating System:  Unknown/Multiple
  duplicaterecordfields ghci         |
       Architecture:                 |   Type of failure:  Other
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 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>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list