on master help sign in
Writable instance for ()
7766a52Jasper Van der Jeugt
src/Hakyll/Core/Writable.hs+3
@@ -20,6 +20,9 @@ class Writable a where
20 -- | Save an item to the given filepath
20 -- | Save an item to the given filepath
21 write :: FilePath -> a -> IO ()
21 write :: FilePath -> a -> IO ()
22
22
23+instance Writable () where
24+ write _ _ = return ()
25+
23instance Writable [Char] where
26instance Writable [Char] where
24 write = writeFile
27 write = writeFile
25
28