Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
patches-class
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
patches-class
Commits
f2d7d7a8
Commit
f2d7d7a8
authored
Feb 24, 2025
by
Alfredo Di Napoli
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ghc964' into 'master'
Support building with 9.6.6 See merge request
!4
parents
3668d286
7e0429f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
cabal.project
cabal.project
+0
-2
patches-class.cabal
patches-class.cabal
+2
-2
Class.hs
src/Data/Patch/Class.hs
+4
-2
No files found.
cabal.project
View file @
f2d7d7a8
...
@@ -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
patches-class.cabal
View file @
f2d7d7a8
...
@@ -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
...
...
src/Data/Patch/Class.hs
View file @
f2d7d7a8
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment