HaskRel-0.1.0.0: HaskRel, Haskell as a DBMS with support for the relational algebra

Copyright© Thor Michael Støre, 2015
LicenseGPL v2 without "any later version" clause
Maintainerthormichael át gmail døt com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Database.HaskRel.Order

Contents

Description

Ordering functions. This is not of the relational model.

Synopsis

Ordering functions.

orderBy :: Set a -> (a -> a -> Ordering) -> [a] Source

Takes any set (including that of a relation) and results in a list of the elements it consists of ordered by the given predicate

orderOn :: Ord b => Set a -> (a -> b) -> [a] Source

Takes any set (including that of a relation) and results in a list of the elements it consists of ordered on the given key function

newtype Asc a Source

Constructors

Asc a 

Instances

Eq a => Eq (Asc a) Source 
Ord a => Ord (Asc a) Source 
Read a => Read (Asc a) Source 
Show a => Show (Asc a) Source 

newtype Desc a Source

Constructors

Desc a 

Instances

Eq a => Eq (Desc a) Source 
Ord a => Ord (Desc a) Source 
Read a => Read (Desc a) Source 
Show a => Show (Desc a) Source