summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Writable.hs
blob: d6c36835beef4d288cdc81e65d9d3d5295558446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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