| Copyright | Copyright (C) 2011-2019 John MacFarlane | 
|---|---|
| License | GNU GPL, version 2 or above | 
| Maintainer | John MacFarlane <jgm@berkeley.edu> | 
| Stability | alpha | 
| Portability | portable | 
| Safe Haskell | Safe | 
| Language | Haskell2010 | 
Text.Pandoc.MIME
Description
Mime type lookup for ODT writer.
Synopsis
- type MimeType = String
- getMimeType :: FilePath -> Maybe MimeType
- getMimeTypeDef :: FilePath -> MimeType
- extensionFromMimeType :: MimeType -> Maybe String
- mediaCategory :: FilePath -> Maybe String
Documentation
getMimeTypeDef :: FilePath -> MimeType Source #
Determime mime type appropriate for file path, defaulting to “application/octet-stream” if nothing else fits.