diff options
-rw-r--r-- | src/Hakyll/Core/Writable.hs | 5 |
1 files changed, 5 insertions, 0 deletions
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 |