schema-0.0.4: Encoding-independent schemas for Haskell data types.
Safe HaskellNone
LanguageHaskell2010

Data.Schema.Builder

Documentation

data Builder a Source #

Constructors

Builder 

Fields

Instances

Instances details
Functor Builder Source # 
Instance details

Defined in Data.Schema.Builder

Methods

fmap :: (a -> b) -> Builder a -> Builder b #

(<$) :: a -> Builder b -> Builder a #

Applicative Builder Source # 
Instance details

Defined in Data.Schema.Builder

Methods

pure :: a -> Builder a #

(<*>) :: Builder (a -> b) -> Builder a -> Builder b #

liftA2 :: (a -> b -> c) -> Builder a -> Builder b -> Builder c #

(*>) :: Builder a -> Builder b -> Builder b #

(<*) :: Builder a -> Builder b -> Builder a #

Read a => Read (Builder a) Source # 
Instance details

Defined in Data.Schema.Builder

Show a => Show (Builder a) Source # 
Instance details

Defined in Data.Schema.Builder

Methods

showsPrec :: Int -> Builder a -> ShowS #

show :: Builder a -> String #

showList :: [Builder a] -> ShowS #

Semigroup (Builder a) Source # 
Instance details

Defined in Data.Schema.Builder

Methods

(<>) :: Builder a -> Builder a -> Builder a #

sconcat :: NonEmpty (Builder a) -> Builder a #

stimes :: Integral b => b -> Builder a -> Builder a #

class ToSchema a where Source #

Minimal complete definition

Nothing

Methods

toSchema :: Builder a Source #

default toSchema :: (Generic a, GToSchema (Rep a)) => Builder a Source #

Instances

Instances details
ToSchema a => ToSchema [a] Source # 
Instance details

Defined in Data.Schema.Builder

Methods

toSchema :: Builder [a] Source #

atom :: Type -> a -> Builder a Source #