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 Type Source #

Constructors

Type 

Instances

Eq Type Source # 

Methods

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

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

Ord Type Source # 

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 # 

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

nullType :: Type Source #

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

data MIMEPair Source #

a (type, subtype) MIME pair.

Constructors

MIMEPair Text SubType 

Instances

type SubType = Text Source #

default subtype representation.

type TextType = SubType Source #

subtype for text content; currently just a string.