summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web
diff options
context:
space:
mode:
Diffstat (limited to 'src/Hakyll/Web')
-rw-r--r--src/Hakyll/Web/FileType.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Hakyll/Web/FileType.hs b/src/Hakyll/Web/FileType.hs
index 8f0bdcc..9c1b681 100644
--- a/src/Hakyll/Web/FileType.hs
+++ b/src/Hakyll/Web/FileType.hs
@@ -23,7 +23,7 @@ data FileType
| ReStructuredText
| PlainText
| Css
- | UnknownFileType
+ | Binary
deriving (Eq, Ord, Show, Read)
-- | Get the file type for a certain file. The type is determined by extension.
@@ -47,7 +47,7 @@ fileType = fileType' . takeExtension
fileType' ".text" = PlainText
fileType' ".txt" = PlainText
fileType' ".css" = Css
- fileType' _ = UnknownFileType
+ fileType' _ = Binary -- Treat unknown files as binary
-- | Get the file type for the current file
--