[GHC] #8959: GHCi should honour UnicodeSyntax

GHC ghc-devs at haskell.org
Fri Jun 6 16:54:44 UTC 2014


#8959: GHCi should honour UnicodeSyntax
-------------------------------+-------------------------------------------
        Reporter:  Fuuzetsu    |            Owner:
            Type:  bug         |           Status:  new
        Priority:  low         |        Milestone:  7.10.1
       Component:  Compiler    |          Version:  7.6.3
      Resolution:              |         Keywords:
Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple             |       Difficulty:  Easy (less than 1 hour)
 Type of failure:              |       Blocked By:
  None/Unknown                 |  Related Tickets:
       Test Case:              |
        Blocking:              |
-------------------------------+-------------------------------------------
Changes (by nomeata):

 * owner:  nomeata =>
 * status:  closed => new
 * resolution:  fixed =>


Comment:

 I just noticed that my patch only works if `-XUnicodeSyntax` is passed on
 the command line, or set with `:set`. It does not work simply because you
 load a file with `LANGUAGE UnicodeSyntax`.

 Should it? Other pragmas (tested it with `RankNTypes`) in a loaded file
 also don’t affect what you enter at GHCi.

 Also, the pragma does not have an effect on the error message printed by
 the compiler in error messages from a file with `UnicodeSyntax` active.
 The `dynflag` passed to the pretty-printer seems to be a different one
 than used when type-checking.

 (Reopening)

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


More information about the ghc-tickets mailing list