on 9939708 help sign in
hakyll/src/Hakyll/Core/Writable.hs
15 lines 379 B history raw
1-- | Describes writable items; items that can be saved to the disk
2--
3{-# LANGUAGE FlexibleInstances #-}
4module Hakyll.Core.Writable
5 ( Writable (..)
6 ) where
8-- | Describes an item that can be saved to the disk
9--
10class Writable a where
11 -- | Save an item to the given filepath
12 write :: FilePath -> a -> IO ()
14instance Writable [Char] where
15 write = writeFile