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

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

Text.XML.HXT.DOM.MimeTypes

Description

mime type related data and functions

# Documentation

type MimeTypeTable = Map String String

application_xhtml :: String

text_xml_external_parsed_entity :: String

text_xml :: String

text_xdtd :: String

text_plain :: String

text_pdf :: String

text_html :: String

application_xml_dtd :: String

application_xml_external_parsed_entity :: String

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)]