on master help sign in
Writable instance for Identifier
commit047319b058dafcdb86463eef7e6acdaa37dc9f26 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateMon 2 May 2011, 23:16 (15 years ago) parent6ecf7f7
1 file changed+5
src/Hakyll/Core/Writable.hs+5
src/Hakyll/Core/Writable.hs+5
@@ -11,6 +11,8 @@ import qualified Data.ByteString as SB
1111import Text.Blaze (Html)
1212import Text.Blaze.Renderer.String (renderHtml)
1313
14+import Hakyll.Core.Identifier
15+
1416-- | Describes an item that can be saved to the disk
1517--
1618class Writable a where
@@ -28,3 +30,6 @@ instance Writable [Word8] where
2830
2931instance Writable Html where
3032 write p html = write p $ renderHtml html
33+
34+instance Writable Identifier where
35+ write p i = write p $ show i