vadd: Allow listing multiple desired values for a field.
This commit is contained in:
parent
c2e8c21ca6
commit
7d9486a709
5 changed files with 36 additions and 28 deletions
|
@ -50,6 +50,9 @@ instance Arbitrary ViewFilter where
|
|||
, return (ExcludeValues s)
|
||||
)
|
||||
|
||||
mkViewComponent :: MetaField -> ViewFilter -> ViewComponent
|
||||
mkViewComponent f vf = ViewComponent f vf (multiValue vf)
|
||||
|
||||
{- Can a ViewFilter match multiple different MetaValues? -}
|
||||
multiValue :: ViewFilter -> Bool
|
||||
multiValue (FilterValues s) = S.size s > 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue