[GHC] #14119: Refactor type patterns

GHC ghc-devs at haskell.org
Fri Aug 18 14:39:45 UTC 2017


#14119: Refactor type patterns
-------------------------------------+-------------------------------------
        Reporter:  goldfire          |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:  TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:  12564, 13910,
                                     |  13938, 14038
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I'm not convinced.

 You are proposing a counterpart to `Type`. But there is no counterpart to
 `Expr` in Core.  Indeed, in RULEs the patterns are indeed `Expr`s.  And
 casts in terms can indeed mess things up a bit; see `Rules.match`.

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


More information about the ghc-tickets mailing list