diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-12-25 20:18:36 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-12-25 20:18:36 +0100 |
commit | 0cd7716dae87d50e79883152edf735132ae4798e (patch) | |
tree | 9a28fd991ecc122d0b9c1fd35b3644c7c836d254 /src/Hakyll/Core | |
parent | 6b6a78ea4163bd6b5f843ca9a671aa29f9c29ad9 (diff) | |
download | hakyll-0cd7716dae87d50e79883152edf735132ae4798e.tar.gz |
Add writable class
Diffstat (limited to 'src/Hakyll/Core')
-rw-r--r-- | src/Hakyll/Core/Writable.hs | 15 |
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 |