[GHC] #4370: Bring back monad comprehensions
GHC
cvs-ghc at haskell.org
Mon Jun 13 17:56:45 CEST 2011
#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 simonpj):
I intended it. It seems reasonable that
* `-XMonadComprehensions` makes list comprehensions be interpreted as
monad comprehensions
* `-XTransformListComp` adds the SQL-like comprehension support, to
either list or monad comprehensions
* Ditto for `-XParallelListComp`
Admittedly `TransformListComp` then is not necessarily about '''list'''
comprehensions. Maybe is should be `TransformComp`; and similarly for
`ParallelComp`?
That woudl be doable; we'd have to go through a cycle of deprecation to
encourage people to adopt the new flag name.
Does the logic make sense though?
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4370#comment:59>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list