Skip to content

MonadComprehensions does not imply ParallelListComp?

https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/monad_comprehensions.html

... Parallel Statements ... All these features are enabled by default if the MonadComprehensions extension is enabled.

no they are not?

GHCi, version 9.12.1: https://www.haskell.org/ghc/  :? for help
ghci> :set -XMonadComprehensions 
ghci> [ (x,y,z) | x <- [1..2] , y <- [3..5] | z <-  [6..]]
<interactive>:2:13: error: [GHC-42026]
    Unexpected parallel statement in a monad comprehension
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information