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

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

Cookbook.Project.Quill2.Q2Api

Description

Q2Api is the user-facing part of Quill. It has all the functions necessar to Create, Read, Update, and Delete information from the database, and turn a database back into a Quill-readable string.

Synopsis

Documentation

getQuillName :: Quill -> StringSource

Get the name of a Quill.

getQuillBody :: Quill -> Element StringSource

Return the element of the Quill, specifically useful for lists.

getQuill :: [Quill] -> String -> QuillStatus QuillSource

Find a quill in the database by name, returning it or a possible error type.

lookUp :: [Quill] -> (String, String) -> QuillStatus StringSource

Look up the value of a Quill TABLE. Will produce an error on a list.

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

Remove a quill from the database by name.

removeItem :: [Quill] -> (String, String) -> QuillStatus [Quill]Source

Remove an item from a Quill within a database. Works aggressively, meaning it removes all copies to help sanitize QuillMultiples out. th

addQuill :: [Quill] -> Quill -> [Quill]Source

Adds a Quill databse to the file.

addItem :: [Quill] -> QuillAddition -> QuillStatus [Quill]Source

Add a QuillAddition to the databse. QuillAddition is a safe encapsulation of list and table values.

qMap :: QuillStatus [Quill] -> ([Quill] -> QuillStatus [Quill]) -> QuillStatus [Quill]Source

Map a Quill function.

changeItem :: [Quill] -> QuillAddition -> QuillStatus [Quill]Source

Change an item within the database using a Quill addition. Wrapper of addItem and removeItem.

toString :: Quill -> StringSource

Turn a Quill table into a string.