[GHC] #9015: A documented way to differentiate between statements, declarations, imports, etc.

GHC ghc-devs at haskell.org
Tue Apr 22 13:07:13 UTC 2014


#9015: A documented way to differentiate between statements, declarations,
imports, etc.
-------------------------------------+-------------------------------------
        Reporter:  splinterofchaos   |            Owner:
            Type:  feature request   |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  GHC API           |          Version:  7.8.2
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  Documentation     |       Difficulty:  Moderate (less
  bug                                |  than a day)
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+-------------------------------------

Comment (by splinterofchaos):

 Tentatively, I could, although I wan't sure of the best policy.

 Perhaps later today, if I have some time but otherwise tomorrow, I might
 do so. Since GHCi's solution seems to work, I'll just factor it into
 `InteractiveUI` or a submodule, if more appropriate. Although, on second
 thought, it would seem more consistent with the current API if instead of
 predicate functions, I wrote one returning an ADT constructed with
 something like `AStmt`, `AnImport`, or `ADecl`.

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


More information about the ghc-tickets mailing list