I am getting this error, I'm trying to implement a bloom filter
Unexpected parallel statement in a list comprehension
Use ParallelListComp
from this line of code below
addDB db idx = (last z) where z = db:[ setTrue udb i | udb <- z | i <- idx ]
Any ideas?
Just needed to add
{-# LANGUAGE ParallelListComp #-}
Thanks for pointing that out bheklilr
Did you really mean to use a parallel list comprehension there? To quote the Haskell 2010 Report, a (normal) list comprehension has the form [e | q_1, ..., q_n]
where each qualifier q_i
is either a generator of the form p <- e
, a local binding, or a boolean guard. If you intended one of these, you should use a comma and not a pipe to separate the qualifiers in your list comprehension.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With