Skip to content

Commit

Permalink
Merge pull request #69 from obsidiansystems/template-narrow-dependenc…
Browse files Browse the repository at this point in the history
…y-to-just-some

dependent-sum-template: Narrow dependency to just `some`
  • Loading branch information
cgibbard authored Jul 11, 2023
2 parents df663d9 + a3c45ed commit 618e50a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions dependent-sum-template/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
normalize their representation. This should allow the deriving functions to work on a much wider range
of types.

* Change dependency to just be on `some`, not `dependent-sum`, as we just need the reexported classes.

## 0.1.1.1 - 2021-12-30

* Fix warning with GHC 9.2 about non-canonical `return`.
Expand Down
8 changes: 4 additions & 4 deletions dependent-sum-template/dependent-sum-template.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ license: PublicDomain
homepage: https://github.com/obsidiansystems/dependent-sum

category: Unclassified
synopsis: Template Haskell code to generate instances of classes in dependent-sum package
description: Template Haskell code to generate instances of classes in dependent-sum package, such as 'GEq' and 'GCompare'.
synopsis: Template Haskell code to generate instances of classes in some package
description: Template Haskell code to generate instances of classes in some package, such as 'GEq' and 'GCompare'.

tested-with: GHC == 8.0.2,
GHC == 8.2.2,
Expand All @@ -37,7 +37,7 @@ Library
other-modules: Data.Dependent.Sum.TH.Internal
Data.GADT.Compare.Monad
build-depends: base >= 3 && <5,
dependent-sum >= 0.4.1 && < 0.8,
some >= 1.0.1 && < 1.1,
containers >= 0.5.9.2,
mtl,
template-haskell,
Expand All @@ -52,7 +52,7 @@ test-suite test
main-is: test.hs
build-depends: base
, constraints-extras
, dependent-sum
, dependent-sum-template
, template-haskell
, some
, th-abstraction
1 change: 0 additions & 1 deletion dependent-sum-template/src/Data/GADT/Compare/TH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module Data.GADT.Compare.TH

import Control.Monad
import Control.Monad.Writer
import Data.Dependent.Sum
import Data.Dependent.Sum.TH.Internal
import Data.Functor.Identity
import Data.GADT.Compare
Expand Down
1 change: 0 additions & 1 deletion dependent-sum-template/src/Data/GADT/Show/TH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module Data.GADT.Show.TH
import Control.Applicative
import Control.Monad
import Control.Monad.Writer
import Data.Dependent.Sum
import Data.Dependent.Sum.TH.Internal
import Data.Functor.Identity
import Data.GADT.Show
Expand Down
1 change: 0 additions & 1 deletion dependent-sum-template/test/test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -ddump-splices #-}
import Control.Monad
import Data.Dependent.Sum
import Data.Functor.Identity
import Data.Constraint.Extras.TH
import Data.GADT.Compare
Expand Down

0 comments on commit 618e50a

Please sign in to comment.