Skip to content

Parallel comprehensions not allowed in Template Haskell quotes

When my code contains

[| [ (x,y) | x <- [0..10] | y <- [0,5..50] ] |]

I get

    Exotic statement not (yet) handled by Template Haskell
      [x <- [0 .. 10] |  y <- [0, 5 .. 50], (x, y)]

Interestingly, the node to handle parallel comprehensions (ParS) already exists in Template Haskell, but the code in !DsMeta is missing.

I will submit a patch shortly.

Trac metadata
Trac field Value
Version 7.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Template Haskell
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information