cookbook-3.0.1.1: Tiered general-purpose libraries with domain-specific applications.

Copyright(c) 2014 by Nate Pisarski
LicenseBSD3
Maintainernathanpisarski@gmail.com
StabilityStable
PortabilityPortable (Cookbook)
Safe HaskellSafe
LanguageHaskell98

Cookbook.Project.Quill2.Q2Prelude

Description

Q2Prelude is the entry-level module for Quill2. It defines the data types that define data, databases, and errors throughout the rest of Quill2.

Synopsis

Documentation

data Element a Source #

The body of a table or list.

Constructors

List [a] 
Table [(a, a)] 

Instances

Eq a => Eq (Element a) Source # 

Methods

(==) :: Element a -> Element a -> Bool #

(/=) :: Element a -> Element a -> Bool #

Show a => Show (Element a) Source # 

Methods

showsPrec :: Int -> Element a -> ShowS #

show :: Element a -> String #

showList :: [Element a] -> ShowS #

type Quill = (String, Element String) Source #

Helper type. Binds a name to a body.

data QuillStatus a Source #

Encapsulates errors in the quill database. Currently supports Missing elements and Multiple Instances.

Instances

data QuillAddition Source #

Safe way of adding items to a Quill database. Allows type-checking on Lists and Tables when manipulating Elements.

Constructors

AList (String, String) 
ATable (String, String, String)