summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/CompiledItem.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-03-20 15:51:20 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-03-20 15:51:20 +0100
commit92aa446041d9857e57502bc4755e7e9aeca29659 (patch)
tree161bef7787adf76038c6a114d84fe8a4d47f9979 /src/Hakyll/Core/CompiledItem.hs
parent99233f830cead0dea265eb5ec708f781295e734e (diff)
downloadhakyll-92aa446041d9857e57502bc4755e7e9aeca29659.tar.gz
Don't require Writable for storing things
Diffstat (limited to 'src/Hakyll/Core/CompiledItem.hs')
-rw-r--r--src/Hakyll/Core/CompiledItem.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Hakyll/Core/CompiledItem.hs b/src/Hakyll/Core/CompiledItem.hs
index 2e492a2..e40ab56 100644
--- a/src/Hakyll/Core/CompiledItem.hs
+++ b/src/Hakyll/Core/CompiledItem.hs
@@ -7,7 +7,7 @@
--
-- * we need a 'Writable' instance so the results can be saved.
--
-{-# LANGUAGE ExistentialQuantification #-}
+{-# LANGUAGE ExistentialQuantification, DeriveDataTypeable #-}
module Hakyll.Core.CompiledItem
( CompiledItem (..)
, compiledItem
@@ -24,6 +24,7 @@ import Hakyll.Core.Writable
--
data CompiledItem = forall a. (Binary a, Typeable a, Writable a)
=> CompiledItem a
+ deriving (Typeable)
instance Writable CompiledItem where
write p (CompiledItem x) = write p x