diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-05-02 23:16:43 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-05-02 23:16:43 +0200 |
commit | 047319b058dafcdb86463eef7e6acdaa37dc9f26 (patch) | |
tree | ea1409cb72929e083be7fbf5f4d33c0bf1d8fd22 /src | |
parent | 6ecf7f7f43d052c9354bc81caa3d7b1e9c2eba38 (diff) | |
download | hakyll-047319b058dafcdb86463eef7e6acdaa37dc9f26.tar.gz |
Writable instance for Identifier
Diffstat (limited to 'src')
-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 |