summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-12-25 20:18:36 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-12-25 20:18:36 +0100
commit0cd7716dae87d50e79883152edf735132ae4798e (patch)
tree9a28fd991ecc122d0b9c1fd35b3644c7c836d254 /src
parent6b6a78ea4163bd6b5f843ca9a671aa29f9c29ad9 (diff)
downloadhakyll-0cd7716dae87d50e79883152edf735132ae4798e.tar.gz
Add writable class
Diffstat (limited to 'src')
-rw-r--r--src/Hakyll/Core/Writable.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Hakyll/Core/Writable.hs b/src/Hakyll/Core/Writable.hs
new file mode 100644
index 0000000..d6c3683
--- /dev/null
+++ b/src/Hakyll/Core/Writable.hs
@@ -0,0 +1,15 @@
+-- | Describes writable items; items that can be saved to the disk
+--
+{-# LANGUAGE FlexibleInstances #-}
+module Hakyll.Core.Writable
+ ( Writable (..)
+ ) where
+
+-- | Describes an item that can be saved to the disk
+--
+class Writable a where
+ -- | Save an item to the given filepath
+ write :: FilePath -> a -> IO ()
+
+instance Writable [Char] where
+ write = writeFile