harmony-0.1.1.0: A web service specification compiler that generates implementation and tests.

Safe HaskellNone
LanguageHaskell2010

Generation.TemplateCompiler

Description

Compiles Hastache templates and defines the datatypes to pass information to them.

Synopsis

Documentation

data StrValue Source

An enum value

Constructors

StrValue 

Fields

value :: String
 

data SchemaVar Source

A schema variable. It is a field of a struct. bDISCLAIMER/b: there is some redundancy but the focus of this module is to make the templating easy.

data Schema Source

A schema is a struct (it has a name, a route, a write mode, etc...).

data Service Source

A service has a name, a version, and a list of Schema

Constructors

Service 

render :: String -> Service -> IO Text Source

Given a template and a service object, render the template.