Commit f2d7d7a8 authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

Merge branch 'ghc964' into 'master'

Support building with 9.6.6

See merge request !4
parents 3668d286 7e0429f9
...@@ -7,5 +7,3 @@ source-repository-package ...@@ -7,5 +7,3 @@ source-repository-package
type: git type: git
location: https://gitlab.iscpif.fr/gargantext/patches-map/ location: https://gitlab.iscpif.fr/gargantext/patches-map/
tag: 76cae88f367976ff091e661ee69a5c3126b94694 tag: 76cae88f367976ff091e661ee69a5c3126b94694
with-compiler: ghc-8.10.7
...@@ -75,8 +75,8 @@ test-suite spec-patches-class ...@@ -75,8 +75,8 @@ test-suite spec-patches-class
Test.Data.Patch.Class Test.Data.Patch.Class
build-depends: build-depends:
QuickCheck ^>= 2.14.2 QuickCheck ^>= 2.14.2
, base ^>= 4.14.3 , base >= 4.14.3 && < 5
, hspec ^>= 2.7 , hspec >= 2.11 && < 2.12
, patches-class , patches-class
, tasty ^>= 1.4.2.1 , tasty ^>= 1.4.2.1
, tasty-discover , tasty-discover
......
...@@ -8,6 +8,8 @@ Stability : experimental ...@@ -8,6 +8,8 @@ Stability : experimental
Portability : POSIX Portability : POSIX
-} -}
{-# LANGUAGE TypeOperators #-}
module Data.Patch.Class module Data.Patch.Class
( -- Classes ( -- Classes
Patchable Patchable
...@@ -391,7 +393,7 @@ instance (Diff a p, Diff b q) => Diff (a, b) (p, q) where ...@@ -391,7 +393,7 @@ instance (Diff a p, Diff b q) => Diff (a, b) (p, q) where
----------- -----------
newtype PairPatch p q = PairPatch { _pairPatch :: (p, q) } newtype PairPatch p q = PairPatch { _pairPatch :: (p, q) }
deriving (Eq, Ord, Show, Generic, Read, deriving (Eq, Ord, Show, Generic, Read, Functor,
Bifunctor, Bifoldable, Semigroup, Monoid, Group) Bifunctor, Bifoldable, Semigroup, Monoid, Group)
instance Bitraversable PairPatch where instance Bitraversable PairPatch where
...@@ -524,7 +526,7 @@ instance (Diff a p, Diff b q) => Diff (a, b) (PairPatch p q) where ...@@ -524,7 +526,7 @@ instance (Diff a p, Diff b q) => Diff (a, b) (PairPatch p q) where
------------- -------------
newtype EitherPatch p q = EitherPatch { _eitherPatch :: (p, q) } newtype EitherPatch p q = EitherPatch { _eitherPatch :: (p, q) }
deriving (Eq, Ord, Show, Generic, Read, deriving (Eq, Ord, Show, Generic, Read, Functor,
Bifunctor, Bifoldable, Semigroup, Monoid, Group) Bifunctor, Bifoldable, Semigroup, Monoid, Group)
leftPatch :: Lens (EitherPatch p q) (EitherPatch p' q) p p' leftPatch :: Lens (EitherPatch p q) (EitherPatch p' q) p p'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment