summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web/Pandoc
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-03-29 12:37:15 +0200
committerJasper Van der Jeugt <m@jaspervdj.be>2012-03-29 12:37:15 +0200
commit2c094ba80b1fa06fc60602a25acdf68af28a1682 (patch)
tree01b0c4f05047886254d1b1871a575511b6a9cce2 /src/Hakyll/Web/Pandoc
parent13ec906b5f73511fa81e966a544a59af434064ed (diff)
downloadhakyll-2c094ba80b1fa06fc60602a25acdf68af28a1682.tar.gz
Add textile support
Diffstat (limited to 'src/Hakyll/Web/Pandoc')
-rw-r--r--src/Hakyll/Web/Pandoc/FileType.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Hakyll/Web/Pandoc/FileType.hs b/src/Hakyll/Web/Pandoc/FileType.hs
index a10de1c..bde0e4e 100644
--- a/src/Hakyll/Web/Pandoc/FileType.hs
+++ b/src/Hakyll/Web/Pandoc/FileType.hs
@@ -25,6 +25,7 @@ data FileType
| OrgMode
| PlainText
| Rst
+ | Textile
deriving (Eq, Ord, Show, Read)
-- | Get the file type for a certain file. The type is determined by extension.
@@ -48,6 +49,7 @@ fileType = fileType' . takeExtension
fileType' ".rst" = Rst
fileType' ".tex" = LaTeX
fileType' ".text" = PlainText
+ fileType' ".textile" = Textile
fileType' ".txt" = PlainText
fileType' _ = Binary -- Treat unknown files as binary