[GHC] #11164: No way to import a data instance

GHC ghc-devs at haskell.org
Sat Dec 5 11:06:21 UTC 2015


#11164: No way to import a data instance
-------------------------------------+-------------------------------------
        Reporter:  Feuerbach         |                Owner:  kanetw
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  phab:D1573
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by kanetw):

 Small note: this test has slightly weird output:
 {{{
 --- ./ghci/scripts/T5417.stdout.normalised      2015-12-05
 12:03:09.099962730 +0100
 +++ ./ghci/scripts/T5417.run.stdout.normalised  2015-12-05
 12:03:09.099962730 +0100
 @@ -3,5 +3,7 @@
  data family D a
  class C.C1 a where
    data family C.F a
 +class C.C1 a where
 +  data family C.F a
         -- Defined at T5417a.hs:5:5
  data instance C.F (B1 a) = B2 a        -- Defined at T5417.hs:8:10
 }}}
 but looking at what the individual script command outputs I actually like
 the output more:
 {{{
 *T5417> :browse
 data B1 a = B1 a
 data instance C.F (B1 a) = B2 a
 data family D a
 class C.C1 a where
   data family C.F a
 *T5417> :info C.F
 class C.C1 a where
   data family C.F a
         -- Defined at T5417a.hs:5:5
 data instance C.F (B1 a) = B2 a         -- Defined at T5417.hs:8:10
 }}}

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


More information about the ghc-tickets mailing list