hxt-9.2.2: A collection of tools for processing XML with Haskell.

Portability | portable
Stability | experimental
Maintainer | Uwe Schmidt (uwe@fh-wedel.de)
Safe Haskell | Safe-Infered

Text.XML.HXT.DOM.MimeTypes

Description

mime type related data and functions

# Documentation

type MimeTypeTable = Map String String

application_xhtml, text_xml_external_parsed_entity, text_xml, text_xdtd, text_plain, text_pdf, text_html, application_xml_dtd, application_xml_external_parsed_entity, application_xml :: String

isTextMimeType :: String -> Bool

isHtmlMimeType :: String -> Bool

isXmlMimeType :: String -> Bool

defaultMimeTypeTable :: MimeTypeTable

extensionToMimeType :: String -> MimeTypeTable -> String

readMimeTypeTable :: FilePath -> IO MimeTypeTable

parseMimeTypeTable :: String -> [(String, String)]