diff options
| author | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-11-18 21:56:52 +0100 |
|---|---|---|
| committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-11-18 21:56:52 +0100 |
| commit | 877cb21d1630d32c6e40eb7c6f0ecc7e1da2bd52 (patch) | |
| tree | 57ce11325adbbb7502086450dd1d1a9f1e81b8f2 /src/Hakyll/Core/Item | |
| parent | 1347b0fa6cdd98986f927368e76e849068f69e1a (diff) | |
| download | hakyll-877cb21d1630d32c6e40eb7c6f0ecc7e1da2bd52.tar.gz | |
Add Item abstraction
Diffstat (limited to 'src/Hakyll/Core/Item')
| -rw-r--r-- | src/Hakyll/Core/Item/SomeItem.hs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Hakyll/Core/Item/SomeItem.hs b/src/Hakyll/Core/Item/SomeItem.hs new file mode 100644 index 0000000..c5ba0df --- /dev/null +++ b/src/Hakyll/Core/Item/SomeItem.hs @@ -0,0 +1,23 @@ +-------------------------------------------------------------------------------- +{-# LANGUAGE DeriveDataTypeable #-} +{-# LANGUAGE ExistentialQuantification #-} +module Hakyll.Core.Item.SomeItem + ( SomeItem (..) + ) where + + +-------------------------------------------------------------------------------- +import Data.Binary (Binary) +import Data.Typeable (Typeable) + + +-------------------------------------------------------------------------------- +import Hakyll.Core.Item +import Hakyll.Core.Writable + + +-------------------------------------------------------------------------------- +-- | An existential type, mostly for internal usage. +data SomeItem = forall a. + (Binary a, Typeable a, Writable a) => SomeItem (Item a) + deriving (Typeable) |
