Source

statistics / Statistics / Math / RootFinding.hs

Diff from to

File Statistics/Math/RootFinding.hs

-{-# LANGUAGE BangPatterns, DeriveDataTypeable #-}
+{-# LANGUAGE BangPatterns, DeriveDataTypeable, DeriveGeneric #-}
 
 -- |
 -- Module    : Statistics.Math.RootFinding
 
 import Control.Applicative
 import Control.Monad       (MonadPlus(..), ap)
-import Data.Typeable       (Typeable)
+import Data.Data (Data, Typeable)
+import GHC.Generics (Generic)
 
 
 -- | The result of searching for a root of a mathematical function.
             -- error tolerance after the given number of iterations.
             | Root a
             -- ^ A root was successfully found.
-              deriving (Eq, Read, Show, Typeable)
+              deriving (Eq, Read, Show, Typeable, Data, Generic)
 
 instance Functor Root where
     fmap _ NotBracketed = NotBracketed