[GHC] #8186: Parallel comprehensions not allowed in Template Haskell quotes

GHC ghc-devs at haskell.org
Tue Aug 27 20:36:08 UTC 2013


#8186: Parallel comprehensions not allowed in Template Haskell quotes
------------------------------------+-------------------------------------
       Reporter:  goldfire          |             Owner:  goldfire
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Template Haskell  |           Version:  7.7
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 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.

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




More information about the ghc-tickets mailing list