Skip to content

Commit

Permalink
Fix GHC < 8.6 build
Browse files Browse the repository at this point in the history
It turns out we were relying on instances from a transitive dependency
on base-orphans. Added that explicitly so that we don't regress on the
instances provided with old GHCs.
  • Loading branch information
Ericson2314 committed Dec 12, 2020
1 parent 830add4 commit 57bdb25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions patch.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ library
, transformers >= 0.5.6.0 && < 0.6
, witherable >= 0.3 && < 0.4

if impl(ghc < 8.6) -- really, if base < 8.12
build-depends: base-orphans >= 0.8 && < 0.9

exposed-modules: Data.Functor.Misc
, Data.Monoid.DecidablyEmpty
, Data.Patch
Expand Down
4 changes: 4 additions & 0 deletions src/Data/Semigroup/Additive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ module Data.Semigroup.Additive
import Data.Functor.Const (Const (..))
import Data.Functor.Identity
import Data.Proxy
#if !MIN_VERSION_base(4,12,0)
-- for :*: and :.: semigroup instances
import Data.Orphans ()
#endif
#if !MIN_VERSION_base(4,11,0)
import Data.Semigroup (Semigroup (..))
#endif
Expand Down

0 comments on commit 57bdb25

Please sign in to comment.