hw-mquery-0.1.0.1: Conduits for tokenizing streams.

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.MQuery

Documentation

newtype MQuery a Source #

Constructors

MQuery (DList a) 

Instances

Monad MQuery Source # 

Methods

(>>=) :: MQuery a -> (a -> MQuery b) -> MQuery b #

(>>) :: MQuery a -> MQuery b -> MQuery b #

return :: a -> MQuery a #

fail :: String -> MQuery a #

Functor MQuery Source # 

Methods

fmap :: (a -> b) -> MQuery a -> MQuery b #

(<$) :: a -> MQuery b -> MQuery a #

Applicative MQuery Source # 

Methods

pure :: a -> MQuery a #

(<*>) :: MQuery (a -> b) -> MQuery a -> MQuery b #

(*>) :: MQuery a -> MQuery b -> MQuery b #

(<*) :: MQuery a -> MQuery b -> MQuery a #

Alternative MQuery Source # 

Methods

empty :: MQuery a #

(<|>) :: MQuery a -> MQuery a -> MQuery a #

some :: MQuery a -> MQuery [a] #

many :: MQuery a -> MQuery [a] #

MonadPlus MQuery Source # 

Methods

mzero :: MQuery a #

mplus :: MQuery a -> MQuery a -> MQuery a #

Pretty (MQuery Int) Source # 

Methods

pretty :: MQuery Int -> Doc #

prettyList :: [MQuery Int] -> Doc #

Pretty (MQuery Integer) Source # 
Pretty (MQuery String) Source # 
ToBool (MQuery a) Source # 

Methods

toBool :: MQuery a -> Bool Source #

class IsPredicate a where Source #

Minimal complete definition

toPredicate

Associated Types

type ArgOf a Source #

Methods

toPredicate :: ArgOf a -> a -> Bool Source #

satisfying :: (a -> Bool) -> a -> MQuery a Source #

key :: Entry k v -> MQuery k Source #

value :: Entry k v -> MQuery v Source #

dlTake :: Int -> DList a -> DList a Source #

select :: ToBool b => a -> (a -> b) -> MQuery a Source #

having :: (a -> MQuery b) -> a -> MQuery a Source #

valueOf :: Eq a => a -> a -> MQuery a Source #

limit :: Int -> MQuery a -> MQuery a Source #

skip :: Int -> MQuery a -> MQuery a Source #

page :: Int -> Int -> MQuery a -> MQuery a Source #

sorted :: Ord a => MQuery a -> MQuery a Source #

onList :: ([a] -> [a]) -> MQuery a -> MQuery a Source #

aggregate :: ([a] -> b) -> MQuery a -> MQuery b Source #

uniq :: Eq a => [a] -> [a] Source #