[GHC] #10027: Importing constructor of associated data type fails

GHC ghc-devs at haskell.org
Mon Feb 2 14:26:30 UTC 2015


#10027: Importing constructor of associated data type fails
-------------------------------------+-------------------------------------
        Reporter:  lspitzner         |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.8.4
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |  constructor import associated data
 Type of failure:  None/Unknown      |  type
      Blocked By:                    |            Architecture:
 Related Tickets:                    |  Unknown/Multiple
                                     |               Test Case:
                                     |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Putting comment:6 and comment:7 together, maybe
 {{{
    pattern T( C1, C2, C3 )
 }}}
 exports only data constructors `C1`, `C2`, `C3`, but not `T`.  And then
 {{{
   pattern T(..)
 }}}
 would export all the constructors, but not `T`.

 Another alternative
 {{{
   pattern C..
 }}}
 exports all `C` and all the other peer constructor from `C`'s data type.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10027#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list