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.HFWTabulation

Description

HList fixed-width tabular presentation. Presentation of HList values in a two-dimensional, tabular fixed-width font form with a header consisting of labels and optionally types. Only records are supported by this module, see TIPFWTabulation for support for TIPs.

Synopsis

Documentation

class Show a => FWPresent a where Source

Instances

((~) * (FWPPred a) flag, FWPresent' flag a) => FWPresent a Source 

printHRecSetTab :: (Typeable [*] a, RecordValues a, HFoldr (Mapcar HPresentRecAttr) [[String]] (RecordValuesR a) [[String]]) => Set (Record a) -> IO () Source

Prints a set of HList records in a table format

printHRecSetTabTyped :: (Typeable [*] a, RecordValues a, HFoldr (Mapcar HPresentTypedRecAttr) [[String]] (RecordValuesR a) [[String]]) => Set (Record a) -> IO () Source

Prints a set of HList records in a table format, with types in the header

printHRecSetTabTypedTS :: (Typeable [*] a, RecordValues a, HFoldr (Mapcar HPresentTypedRecAttr) [[String]] (RecordValuesR a) [[String]], HListTypeSynonym ts) => ts -> Set (Record a) -> IO () Source

Prints a set of HList records in a table format, with types that use the given type synonyms in the header

showTR :: TypeRep -> String Source

Show a TypeRep

showTRTS :: HListTypeSynonym ts => ts -> TypeRep -> String Source

Show a TypeRep, using the given type synonyms

showHListSetType :: forall a r. (Typeable r, Typeable a) => Set (r a) -> String Source

class HListTypeSynonym s where Source

Type synoyms used when building the table header with type names

Instances

HListTypeSynonym HaskRelTS Source

HaskRel type synonyms

type family FWPPred a Source

Equations

FWPPred (Set (Record a)) = HFWRecSet 
FWPPred (Record a) = HFWRec 
FWPPred (Set (TIP a)) = HFWTIPSet 
FWPPred (TIP a) = HFWTIP 
FWPPred String = HFWString 
FWPPred a = HFWOther 

data HPresentRecAttr Source

Constructors

HPresentRecAttr 

Instances

((~) * [String] stringL, FWPresent' (FWPPred a) a) => ApplyAB HPresentRecAttr a stringL Source 

data HPresentTypedRecAttr Source

Constructors

HPresentTypedRecAttr 

Instances

((~) * [String] stringL, FWPresent' (FWPPred a) a) => ApplyAB HPresentTypedRecAttr a stringL Source