summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-05-02 23:16:43 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-05-02 23:16:43 +0200
commit047319b058dafcdb86463eef7e6acdaa37dc9f26 (patch)
treeea1409cb72929e083be7fbf5f4d33c0bf1d8fd22 /src
parent6ecf7f7f43d052c9354bc81caa3d7b1e9c2eba38 (diff)
downloadhakyll-047319b058dafcdb86463eef7e6acdaa37dc9f26.tar.gz
Writable instance for Identifier
Diffstat (limited to 'src')
-rw-r--r--src/Hakyll/Core/Writable.hs5
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