Safe Haskell | Safe-Inferred |
---|
- class (Show a, Eq a) => MType a where
- toType :: a -> ByteString -> Maybe a
- class (Show a, Eq a) => MSubType a where
- toSubType :: a -> ByteString -> Maybe a
- data MediaType t s = MediaType {
- _type :: !t
- _subtype :: !s
- _quality :: !Double
- _params :: ![(ByteString, ByteString)]
- data Type = Type ByteString
- data All = All
- data Application = Application
- data Audio = Audio
- data Image = Image
- data Message = Message
- data Multipart = Multipart
- data Text = Text
- data Video = Video
- data SubType = SubType ByteString
- data AtomXml = AtomXml
- data Css = Css
- data Csv = Csv
- data Encrypted = Encrypted
- data FormData = FormData
- data FormUrlEncoded = FormUrlEncoded
- data Gif = Gif
- data Gzip = Gzip
- data Javascript = Javascript
- data Jpeg = Jpeg
- data Json = Json
- data Mixed = Mixed
- data Mp4 = Mp4
- data Mpeg = Mpeg
- data OctetStream = OctetStream
- data Ogg = Ogg
- data Partial = Partial
- data Pkcs12 = Pkcs12
- data Pkcs7Cert = Pkcs7Cert
- data Pkcs7Sig = Pkcs7Sig
- data Pkcs7Mime = Pkcs7Mime
- data Pkcs7CertRqRs = Pkcs7CertRqRs
- data Plain = Plain
- data Png = Png
- data Postscript = Postscript
- data Protobuf = Protobuf
- data RdfXml = RdfXml
- data RssXml = RssXml
- data Tar = Tar
- data Tiff = Tiff
- data Thrift = Thrift
- data Vorbis = Vorbis
- data Webm = Webm
- data XhtmlXml = XhtmlXml
- data Xml = Xml
Types
class (Show a, Eq a) => MType a whereSource
Type-class for converting a ByteString
to a media-type.
toType :: a -> ByteString -> Maybe aSource
class (Show a, Eq a) => MSubType a whereSource
Type-class for converting a ByteString
to a media-subtype.
toSubType :: a -> ByteString -> Maybe aSource
The Media-type representation.
MediaType | |
|
Media-Types
Media-Sub-Types
Generic media-subtype.
data FormUrlEncoded Source