[GHC] #10092: lex doesn't handle binary literals

GHC ghc-devs at haskell.org
Sun Feb 22 13:31:37 UTC 2015


#10092: lex doesn't handle binary literals
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                   Owner:  ekmett
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Core Libraries    |                 Version:  7.10.1-rc2
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |  BinaryLiterals report-impact
 Type of failure:  Incorrect result  |            Architecture:
  at runtime                         |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:  #9224             |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by ekmett):

 Given that `read` and `show` should have portable behavior across
 implementations, it seems to me that we should _not_ support binary
 literals in `read`/`lex`.

 Otherwise we invite the endless waves of portability problems that ensue
 from the "be liberal in what you accept, strict in what you output" dogma.

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


More information about the ghc-tickets mailing list