[GHC] #10961: Make it possible to purely use the parser

GHC ghc-devs at haskell.org
Fri Mar 4 00:15:31 UTC 2016


#10961: Make it possible to purely use the parser
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:
            Type:  task              |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Compiler          |              Version:  7.10.2
  (Parser)                           |
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #10143            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dalaing):

 I'm now wondering if it would make sense to have the parser track some
 kind of warning-related values rather than convert them to SDocs, at least
 during the pure part.

 If the conversion to SDocs can be done after the parsing, that means users
 of the pure parsing interface have less structures to set up before they
 can do things.

 The alternative would be to further split up the pretty printing flags, so
 that the things needed for printing error handling are easily available
 (and potentially a default value can be exposed for ease of use).

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


More information about the ghc-tickets mailing list