Skip to content

Commit

Permalink
Remove unused generic-deriving dependency
Browse files Browse the repository at this point in the history
Now that we depend on GHC 7.4 as the minimum, the conditional
`generic-deriving` dependency is never used.
  • Loading branch information
RyanGlScott committed Aug 27, 2019
1 parent 543c055 commit c4132a8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
3 changes: 0 additions & 3 deletions pointed.cabal
Expand Up @@ -72,9 +72,6 @@ library
build-depends: base >= 4.5 && < 5,
data-default-class >= 0.0.1 && < 0.2

if impl(ghc >= 7.0 && < 7.2)
build-depends: generic-deriving >= 1.11 && < 1.13

if impl(ghc >= 7.2 && < 7.6)
build-depends: ghc-prim

Expand Down
7 changes: 1 addition & 6 deletions src/Data/Copointed.hs
Expand Up @@ -10,6 +10,7 @@ module Data.Copointed where

import Control.Applicative
import Data.Default.Class
import GHC.Generics

#ifdef MIN_VERSION_comonad
import Control.Comonad.Trans.Env
Expand Down Expand Up @@ -59,12 +60,6 @@ import qualified Control.Monad.Trans.Writer.Lazy as Lazy
import qualified Control.Monad.Trans.Writer.Strict as Strict
#endif

#if defined(MIN_VERSION_generic_deriving)
import Generics.Deriving
#else
import GHC.Generics
#endif

-- | 'Copointed' does not require a 'Functor', as the only relationship
-- between 'copoint' and 'fmap' is given by a free theorem.

Expand Down
7 changes: 1 addition & 6 deletions src/Data/Pointed.hs
Expand Up @@ -13,6 +13,7 @@ import Control.Arrow
import Control.Applicative
import qualified Data.Monoid as Monoid
import Data.Default.Class
import GHC.Generics

#ifdef MIN_VERSION_comonad
import Control.Comonad
Expand Down Expand Up @@ -89,12 +90,6 @@ import Data.HashMap.Lazy (HashMap)
import qualified Data.HashMap.Lazy as HashMap
#endif

#if defined(MIN_VERSION_generic_deriving)
import Generics.Deriving
#else
import GHC.Generics
#endif

class Pointed p where
point :: a -> p a

Expand Down

0 comments on commit c4132a8

Please sign in to comment.