descriptive-0.1.1: Self-describing consumers/parsers; forms, cmd-line args, JSON, etc.

Safe HaskellNone
LanguageHaskell98

Descriptive.JSON

Contents

Description

A JSON API which describes itself.

Synopsis

Combinators

obj Source

Arguments

:: Text

Description of what the object is.

-> Consumer Object Doc a

An object consumer.

-> Consumer Value Doc a 

Consume an object.

key Source

Arguments

:: Text

The key to lookup.

-> Consumer Value Doc a

A value consumer of the object at the key.

-> Consumer Object Doc a 

Consume from object at the given key.

string Source

Arguments

:: Text

Description of what the string is for.

-> Consumer Value Doc Text 

Consume a string.

integer Source

Arguments

:: Text

Description of what the integer is for.

-> Consumer Value Doc Integer 

Consume an integer.

Description

data Doc Source

Description of parseable things.

Constructors

Integer !Text 
Text !Text 
Struct !Text 
Key !Text 

Instances