mewhit/prismicio/1.0.0

Prismic.Group

type alias Group =
Group

A Group is a collection of basic Fields.

Groups cannot contain Slices or other Groups.

Decoders

field : String -> Decoder Field a -> Decoder Group a

Decode a field

optionalField : String -> Decoder Field a -> a -> Decoder Group a

Decode a field that might be missing.

Pipeline decoders

String
-> Decoder Field a
-> a
-> Decoder Group (a -> b)
-> Decoder Group b
required : String -> Decoder Field a -> Decoder Group (a -> b) -> Decoder Group b