Several places in the JOSE specs require non-empty arrays, but these requirements are
not currently encapsulated by the types or checked by the parser.
These should be implemented using Data.List.NonEmpty.NonEmpty from the semigroups package. Orphan FromJSON and ToJSON instances will be needed for this type, too.
Several places in the JOSE specs require non-empty arrays, but these requirements are not currently encapsulated by the types or checked by the parser.
These should be implemented using
Data.List.NonEmpty.NonEmpty
from thesemigroups
package. OrphanFromJSON
andToJSON
instances will be needed for this type, too.