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

PortabilityPortable (Cookbook
StabilityStable
Maintainernathanpisarski@gmail.com
Safe HaskellSafe-Inferred

Cookbook.Project.Quill.Quill2

Description

Another library for managing databases. It GREATLY breaks compatibility with Quill, and it will eventually deprecate Quill. It's a whitespace-independant string-based flat file language for database information. Some advantages that Quill2 has over Quill include: Record database entries, list support, better commenting support, more complete API, and greater error handling / safety.

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) 
Show a => Show (Element a) 

type Quill = (String, Element String)Source

Helper type. Binds a name to a body.

decomment :: String -> StringSource

Strip comments from a sanitized string. Comments start with * and end with *.

prepare :: [String] -> StringSource

Prepare the lines of a file for processing.

pTable :: String -> QuillSource

Process a single entry in the database into a Table.

pFile :: [String] -> [Quill]Source

Turn the lines of a file into a list of tables, AKA a Database.

toString :: Quill -> StringSource

Turn a Quill table into a string.