mime-0.4.0.2: Working with MIME types.
Copyright(c) 2006-2009 Galois Inc.
LicenseBSD3
MaintainerSigbjorn Finne <sigbjorn.finne@gmail.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Codec.MIME.Type

Description

Representing MIME types and values.

Synopsis

Documentation

data MIMEParam Source #

Constructors

MIMEParam 

Fields

Instances

Instances details
Eq MIMEParam Source # 
Instance details

Defined in Codec.MIME.Type

Methods

(==) :: MIMEParam -> MIMEParam -> Bool

(/=) :: MIMEParam -> MIMEParam -> Bool

Ord MIMEParam Source # 
Instance details

Defined in Codec.MIME.Type

Methods

compare :: MIMEParam -> MIMEParam -> Ordering

(<) :: MIMEParam -> MIMEParam -> Bool

(<=) :: MIMEParam -> MIMEParam -> Bool

(>) :: MIMEParam -> MIMEParam -> Bool

(>=) :: MIMEParam -> MIMEParam -> Bool

max :: MIMEParam -> MIMEParam -> MIMEParam

min :: MIMEParam -> MIMEParam -> MIMEParam

Show MIMEParam Source # 
Instance details

Defined in Codec.MIME.Type

Methods

showsPrec :: Int -> MIMEParam -> ShowS

show :: MIMEParam -> String

showList :: [MIMEParam] -> ShowS

data Type Source #

Constructors

Type 

Instances

Instances details
Eq Type Source # 
Instance details

Defined in Codec.MIME.Type

Methods

(==) :: Type -> Type -> Bool

(/=) :: Type -> Type -> Bool

Ord Type Source # 
Instance details

Defined in Codec.MIME.Type

Methods

compare :: Type -> Type -> Ordering

(<) :: Type -> Type -> Bool

(<=) :: Type -> Type -> Bool

(>) :: Type -> Type -> Bool

(>=) :: Type -> Type -> Bool

max :: Type -> Type -> Type

min :: Type -> Type -> Type

Show Type Source # 
Instance details

Defined in Codec.MIME.Type

Methods

showsPrec :: Int -> Type -> ShowS

show :: Type -> String

showList :: [Type] -> ShowS

nullType :: Type Source #

The null MIME record type value; currently a text/plain.

showType :: Type -> Text Source #

data MIMEType Source #

Instances

Instances details
Eq MIMEType Source # 
Instance details

Defined in Codec.MIME.Type

Methods

(==) :: MIMEType -> MIMEType -> Bool

(/=) :: MIMEType -> MIMEType -> Bool

Ord MIMEType Source # 
Instance details

Defined in Codec.MIME.Type

Methods

compare :: MIMEType -> MIMEType -> Ordering

(<) :: MIMEType -> MIMEType -> Bool

(<=) :: MIMEType -> MIMEType -> Bool

(>) :: MIMEType -> MIMEType -> Bool

(>=) :: MIMEType -> MIMEType -> Bool

max :: MIMEType -> MIMEType -> MIMEType

min :: MIMEType -> MIMEType -> MIMEType

Show MIMEType Source # 
Instance details

Defined in Codec.MIME.Type

Methods

showsPrec :: Int -> MIMEType -> ShowS

show :: MIMEType -> String

showList :: [MIMEType] -> ShowS

data MIMEPair Source #

a (type, subtype) MIME pair.

Constructors

MIMEPair Text SubType 

Instances

Instances details
Eq MIMEPair Source # 
Instance details

Defined in Codec.MIME.Type

Methods

(==) :: MIMEPair -> MIMEPair -> Bool

(/=) :: MIMEPair -> MIMEPair -> Bool

type SubType = Text Source #

default subtype representation.

type TextType = SubType Source #

subtype for text content; currently just a string.

data Multipart Source #

Constructors

Alternative 
Byteranges 
Digest 
Encrypted 
FormData 
Mixed 
Parallel 
Related 
Signed 
Extension Text

e.g., 'x-foo' (i.e., includes the 'x-' bit)

OtherMulti Text 

Instances

Instances details
Eq Multipart Source # 
Instance details

Defined in Codec.MIME.Type

Methods

(==) :: Multipart -> Multipart -> Bool

(/=) :: Multipart -> Multipart -> Bool

Ord Multipart Source # 
Instance details

Defined in Codec.MIME.Type

Methods

compare :: Multipart -> Multipart -> Ordering

(<) :: Multipart -> Multipart -> Bool

(<=) :: Multipart -> Multipart -> Bool

(>) :: Multipart -> Multipart -> Bool

(>=) :: Multipart -> Multipart -> Bool

max :: Multipart -> Multipart -> Multipart

min :: Multipart -> Multipart -> Multipart

Show Multipart Source # 
Instance details

Defined in Codec.MIME.Type

Methods

showsPrec :: Int -> Multipart -> ShowS

show :: Multipart -> String

showList :: [Multipart] -> ShowS

isXmlBased :: Type -> Bool Source #

isXmlType :: Type -> Bool Source #

type Content = Text Source #

data MIMEValue Source #

Instances

Instances details
Eq MIMEValue Source # 
Instance details

Defined in Codec.MIME.Type

Methods

(==) :: MIMEValue -> MIMEValue -> Bool

(/=) :: MIMEValue -> MIMEValue -> Bool

Show MIMEValue Source # 
Instance details

Defined in Codec.MIME.Type

Methods

showsPrec :: Int -> MIMEValue -> ShowS

show :: MIMEValue -> String

showList :: [MIMEValue] -> ShowS

data MIMEContent Source #

Constructors

Single Content 
Multi [MIMEValue] 

Instances

Instances details
Eq MIMEContent Source # 
Instance details

Defined in Codec.MIME.Type

Methods

(==) :: MIMEContent -> MIMEContent -> Bool

(/=) :: MIMEContent -> MIMEContent -> Bool

Show MIMEContent Source # 
Instance details

Defined in Codec.MIME.Type

Methods

showsPrec :: Int -> MIMEContent -> ShowS

show :: MIMEContent -> String

showList :: [MIMEContent] -> ShowS

data Disposition Source #

Constructors

Disposition 

Instances

Instances details
Eq Disposition Source # 
Instance details

Defined in Codec.MIME.Type

Methods

(==) :: Disposition -> Disposition -> Bool

(/=) :: Disposition -> Disposition -> Bool

Show Disposition Source # 
Instance details

Defined in Codec.MIME.Type

Methods

showsPrec :: Int -> Disposition -> ShowS

show :: Disposition -> String

showList :: [Disposition] -> ShowS

data DispType Source #

Instances

Instances details
Eq DispType Source # 
Instance details

Defined in Codec.MIME.Type

Methods

(==) :: DispType -> DispType -> Bool

(/=) :: DispType -> DispType -> Bool

Show DispType Source # 
Instance details

Defined in Codec.MIME.Type

Methods

showsPrec :: Int -> DispType -> ShowS

show :: DispType -> String

showList :: [DispType] -> ShowS

data DispParam Source #

Constructors

Name Text 
Filename Text 
CreationDate Text 
ModDate Text 
ReadDate Text 
Size Text 
OtherParam Text Text 

Instances

Instances details
Eq DispParam Source # 
Instance details

Defined in Codec.MIME.Type

Methods

(==) :: DispParam -> DispParam -> Bool

(/=) :: DispParam -> DispParam -> Bool

Show DispParam Source # 
Instance details

Defined in Codec.MIME.Type

Methods

showsPrec :: Int -> DispParam -> ShowS

show :: DispParam -> String

showList :: [DispParam] -> ShowS