[GHC] #15320: Save the types in the typechecked syntax tree

GHC ghc-devs at haskell.org
Thu Jun 28 15:18:59 UTC 2018


#15320: Save the types in the typechecked syntax tree
-------------------------------------+-------------------------------------
        Reporter:  nboldi            |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Moreover, the post-typechecked tree is ''already'' annotated with enough
 type information to be able to get its type easily.  We just need someone
 to write `hsExprType :: HsExpr GhcTc -> Type`.  It should not be difficult
 to do this.  We already have its near cousin `hsPatType :: Pat GhcTc ->
 Type`.

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


More information about the ghc-tickets mailing list