aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Types.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Haddock/Types.hs')
-rw-r--r--src/Haddock/Types.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Haddock/Types.hs b/src/Haddock/Types.hs
index 19a6c90b..73fafd6b 100644
--- a/src/Haddock/Types.hs
+++ b/src/Haddock/Types.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE DeriveDataTypeable, DeriveFunctor #-}
+{-# LANGUAGE DeriveDataTypeable, DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-----------------------------------------------------------------------------
-- |
@@ -20,6 +20,8 @@ module Haddock.Types (
) where
+import Data.Foldable
+import Data.Traversable
import Control.Exception
import Control.Arrow
import Control.DeepSeq
@@ -316,7 +318,7 @@ data Doc id
| DocAName String
| DocProperty String
| DocExamples [Example]
- deriving (Functor)
+ deriving (Functor, Foldable, Traversable)
instance Monoid (Doc id) where