hakyll-4.16.2.0: A static website compiler library

Safe Haskell | Safe-Inferred
Language | Haskell2010

Hakyll.Web.Pandoc.FileType

Description

A module dealing with pandoc file extensions and associated file types

Synopsis

- data FileType
  - = Binary
  - | Css
  - | DocBook
  - | Html
  - | Jupyter
  - | LaTeX
  - | LiterateHaskell FileType
  - | Markdown
  - | MediaWiki
  - | OrgMode
  - | PlainText
  - | Rst
  - | Textile
- fileType :: FilePath -> FileType
- itemFileType :: Item a -> FileType

# Documentation

data FileType Source #

Datatype to represent the different file types Hakyll can deal with by default

Constructors

Binary |
Css |
DocBook |
Html |
Jupyter |
LaTeX |
LiterateHaskell FileType |
Markdown |
MediaWiki |
OrgMode |
PlainText |
Rst |
Textile |

#### Instances

Instances details

Read FileType Source # |
Instance details Defined in Hakyll.Web.Pandoc.FileType Methods readsPrec :: Int -> ReadS FileType Source # readList :: ReadS [FileType] Source # readPrec :: ReadPrec FileType Source # readListPrec :: ReadPrec [FileType] Source #
Show FileType Source # |
Instance details Defined in Hakyll.Web.Pandoc.FileType Methods showsPrec :: Int -> FileType -> ShowS Source # show :: FileType -> String Source # showList :: [FileType] -> ShowS Source #
Eq FileType Source # |
Instance details Defined in Hakyll.Web.Pandoc.FileType Methods (==) :: FileType -> FileType -> Bool Source # (/=) :: FileType -> FileType -> Bool Source #
Ord FileType Source # |
Instance details Defined in Hakyll.Web.Pandoc.FileType Methods compare :: FileType -> FileType -> Ordering Source # (<) :: FileType -> FileType -> Bool Source # (<=) :: FileType -> FileType -> Bool Source # (>) :: FileType -> FileType -> Bool Source # (>=) :: FileType -> FileType -> Bool Source # max :: FileType -> FileType -> FileType Source # min :: FileType -> FileType -> FileType Source #

fileType :: FilePath -> FileType Source #

Get the file type for a certain file. The type is determined by extension.

itemFileType :: Item a -> FileType Source #

Get the file type for the current file