-
Parameterise the
ContentType
data type over the "parameters" field. The type becomesContentTypeWith a
. The data constructor name remainsContentType
. ReintroduceContentType
as a type synonym forContentTypeWith Parameters
. A "bare content type" without parameters can be represented asContentTypeWith ()
. -
Introduce
emptyParameters :: Parameters
. It is the same asmempty
but is convenient wheremempty
is ambiguous. -
Accept
Content-Type: multipart/related
withouttype
parameter.RFC 2387 requires the
type
parameter. Nevertheless some producers, including GMail and Fastmail, generate non-conformant messages without thetype
parameter. Wrap theRelated
constructor'sContentType
field in aMaybe
. (#68) -
Introduce the
ContentID
type and use it for themultipart/related
start
parameter. -
Add missing end-of-input assertions to several "secondary" parsers, which could otherwise accept invalid data.
-
defaultCharsets
: recogniseascii
as an alias ofus-ascii
. (#69)
See Git commit history