From 047319b058dafcdb86463eef7e6acdaa37dc9f26 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Mon, 2 May 2011 23:16:43 +0200 Subject: Writable instance for Identifier --- src/Hakyll/Core/Writable.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Hakyll/Core') diff --git a/src/Hakyll/Core/Writable.hs b/src/Hakyll/Core/Writable.hs index 1253e19..8239ce2 100644 --- a/src/Hakyll/Core/Writable.hs +++ b/src/Hakyll/Core/Writable.hs @@ -11,6 +11,8 @@ import qualified Data.ByteString as SB import Text.Blaze (Html) import Text.Blaze.Renderer.String (renderHtml) +import Hakyll.Core.Identifier + -- | Describes an item that can be saved to the disk -- class Writable a where @@ -28,3 +30,6 @@ instance Writable [Word8] where instance Writable Html where write p html = write p $ renderHtml html + +instance Writable Identifier where + write p i = write p $ show i -- cgit v1.2.3