cassava-records-0.1.0.3: Auto-generation of records data type.

Copyright(c) Guru Devanla 2018
LicenseMIT
Maintainergrdvnl@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.Cassava.Internal.RecordBuilder

Contents

Description

This module provides an easy way to explore input files that may have numerous columns by helping create a Record types by guessing the types. That information can be used as is or persisted to a file so that other customizations can be performed.

Synopsis

Documentation

makeField :: ByteString -> Type -> String -> (Name, Bang, Type) Source #

Create a field name and type tuple that will be used with RecC to create a Record.

data Empty Source #

Constructors

Empty 

Orphan instances

FromField Bool Source #

Instances to support creation of Bool type fields. Cassava currently does not provide an instance for Bool.

ToField Bool Source #

Instances to support conversion to Bool type. Cassava currently does not provide an instance for Bool.

Methods

toField :: Bool -> Field #