Data.Schema.Builder
data Builder a Source #
Constructors
Fields
Defined in Data.Schema.Builder
Methods
fmap :: (a -> b) -> Builder a -> Builder b #
(<$) :: a -> Builder b -> Builder a #
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 #
readsPrec :: Int -> ReadS (Builder a) #
readList :: ReadS [Builder a] #
readPrec :: ReadPrec (Builder a) #
readListPrec :: ReadPrec [Builder a] #
showsPrec :: Int -> Builder a -> ShowS #
show :: Builder a -> String #
showList :: [Builder a] -> ShowS #
(<>) :: 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
toSchema :: Builder a Source #
default toSchema :: (Generic a, GToSchema (Rep a)) => Builder a Source #
toSchema :: Builder [a] Source #
atom :: Type -> a -> Builder a Source #