[GHC] #12862: Operator (!) causes weird pretty printing and parsing

GHC ghc-devs at haskell.org
Mon Nov 21 11:55:16 UTC 2016


#12862: Operator (!) causes weird pretty printing and parsing
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
  (Parser)                           |
      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 Iceland_jack):

 Ah this is because

 {{{#!hs
   NaturalMap str ! nat = str !! fromIntegral nat
 }}}

 gets parsed as

 {{{#!hs
   NaturalMap str !nat = str !! fromIntegral nat
 }}}

 If this is intended behavior maybe the error messages should reflect that.

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


More information about the ghc-tickets mailing list