msu-0.2.0.0: Monitor Setup Utility
Safe HaskellNone
LanguageHaskell2010

MSU.Match

Synopsis

Documentation

data Match a Source #

Constructors

Any

Always matches

Eq a

Matches if equal

In [a]

Matches if element

Instances

Instances details
ToJSON a => ToJSON (Match a) Source # 
Instance details

Defined in MSU.Match

FromJSON a => FromJSON (Match a) Source # 
Instance details

Defined in MSU.Match

matches :: Eq a => Maybe (Match a) -> a -> Bool Source #

Apply a Match to get Bool

Accepts Maybe purefuly for convenience of current use (where matches are optional keys in JSON).

matchesMaybe :: Eq a => Maybe (Match a) -> Maybe a -> Bool Source #

Apply a Match to a Maybe to get Bool

A Nothing always matches.