hinquire-0.1.1: Generate armet style query strings.

Safe HaskellSafe-Inferred

Network.Hinquire

Synopsis

Documentation

data Relation Source

The relation between a key and value time=now or cat!=dog

Constructors

Equal 
NEqual 
GThan 
GThanE 
LThan 
LThanE 

Instances

data GBool Source

The boolean operation between a group of Inquires

Constructors

And 
Or 

Instances

data WBool Source

This is an optional negation wrapping an Inquire.

Constructors

NoBool 
Not 

Instances

data Inquire k v Source

The meat of our package. This encapsulates our query logic.

Constructors

Atom 
Predicate k Relation v 
Group (Inquire k v) GBool (Inquire k v) 
Wrap WBool (Inquire k v) 

class Dyad d whereSource

Methods

bireturn :: a -> b -> d a bSource

(>>==) :: d a b -> (a -> b -> d e f) -> d e fSource

Instances

(<&&&>) :: Inquire k v -> Inquire k v -> Inquire k vSource

Conjoin two Inquires.

(<|||>) :: Inquire k v -> Inquire k v -> Inquire k vSource

Disjoin two Inquires.

generate :: (Show v, Show k) => Inquire k v -> StringSource

Slap a question mark in front of our inquire.