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