[GHC] #8840: standalone 'let' in do notation does not parse

GHC ghc-devs at haskell.org
Mon Mar 3 13:37:56 UTC 2014


#8840: standalone 'let' in do notation does not parse
-------------------------------------+------------------------------------
        Reporter:  slyfox            |            Owner:
            Type:  bug               |           Status:  closed
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.6.3
      Resolution:  invalid           |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------
Changes (by slyfox):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Oh, see. Didn't know

 {{{
 f x = let a = 1; b = 2
           g y = exp2
        in exp1
 }}}

 is a valid construct. My code did translated to
 {{{
 main = do { let z = 1
                 print z } -- stray '}'
 }}}

 Closign as INVALID then.

 Thanks!

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


More information about the ghc-tickets mailing list