diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-03-20 15:51:20 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-03-20 15:51:20 +0100 |
commit | 92aa446041d9857e57502bc4755e7e9aeca29659 (patch) | |
tree | 161bef7787adf76038c6a114d84fe8a4d47f9979 /src/Hakyll/Core/CompiledItem.hs | |
parent | 99233f830cead0dea265eb5ec708f781295e734e (diff) | |
download | hakyll-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.hs | 3 |
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 |