@@ -1,18 +1,13 @@
11-- | Describes writable items; items that can be saved to the disk
22--
3−{-# LANGUAGE FlexibleInstances, GeneralizedNewtypeDeriving,
4− DeriveDataTypeable #-}
3+{-# LANGUAGE FlexibleInstances #-}
54module Hakyll.Core.Writable
65 ( Writable (..)
7− , CopyFile (..)
86 ) where
97
10−import System.Directory (copyFile)
118import Data.Word (Word8)
129
1310import qualified Data.ByteString as SB
14−import Data.Binary (Binary)
15−import Data.Typeable (Typeable)
1611
1712-- | Describes an item that can be saved to the disk
1813--
@@ -25,11 +20,3 @@ instance Writable [Char] where
2520
2621instance Writable [Word8] where
2722 write p = SB.writeFile p . SB.pack
28−
29−-- | Newtype construct around 'FilePath' which will copy the file directly
30−--
31−newtype CopyFile = CopyFile {unCopyFile :: FilePath}
32− deriving (Show, Eq, Ord, Binary, Typeable)
33−
34−instance Writable CopyFile where
35− write dst (CopyFile src) = copyFile src dst