#4370: Bring back monad comprehensions
------------------------------+---------------------------------------------
  Reporter:  simonpj          |          Owner:  nsch            
      Type:  feature request  |         Status:  closed          
  Priority:  normal           |      Milestone:  7.4.1           
 Component:  Compiler         |        Version:  6.12.3          
Resolution:  fixed            |       Keywords:                  
  Testcase:                   |      Blockedby:                  
Difficulty:                   |             Os:  Unknown/Multiple
  Blocking:                   |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown     |  
------------------------------+---------------------------------------------

Comment(by nsch):

 The userguide looks fine, I have just one more question. Last time I
 checked "MonadComprehensions" didn't allow transform or parallel
 statements by default. Did you change that on purpose or did I forgot to
 test that properly before sending in those patches?

 {{{
 GHCi, version 7.1.20110504: http://www.haskell.org/ghc/  :? for help

 Prelude> :set -XMonadComprehensions
 Prelude> [ x | x <- [1..], then take 5 ]

 <interactive>:0:19:
     Unexpected transform statement in a monad comprehension
     Use -XTransformListComp
 Prelude> [ x+y | x <- [1,2] | y <- [1,2] ]

 <interactive>:0:18:
     Unexpected parallel statement in a monad comprehension
     Use -XParallelListComp
 }}}

 Those errors shouldn't occur…

 I currently cannot get the latest version to see whether or not this is
 already fixed (my local git is messed up somehow), but I guess it's not.
 :)

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to