1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
Commit Graph

108 Commits

Author SHA1 Message Date
Rob Rix
99eebab91e Perform substructural diffing recursively. 2017-09-19 14:21:37 -04:00
Rob Rix
6f59e2753e Add a focusing traversal to Diffable. 2017-09-19 14:02:08 -04:00
Rob Rix
8938bb371f Define the Diffable instance for Maybe in terms of diffMaybe. 2017-09-19 12:51:25 -04:00
Rob Rix
450b1bf0a2 Define a Diffable instance for Maybe. 2017-09-19 12:49:34 -04:00
Rob Rix
1d60137752 Define a single GDiffable instance for Rec1. 2017-09-19 12:46:40 -04:00
Rob Rix
708dd429e4 Define a Diffable instance for NonEmpty. 2017-09-19 12:46:24 -04:00
Rob Rix
6e29ab8234 Correct the docs for the Diffable instance for []. 2017-09-19 12:46:15 -04:00
Rob Rix
0747f9474a Correct the docs for Algorithm. 2017-09-19 10:52:47 -04:00
Rob Rix
5a0c44971e Diffable uses the Alternative instance. 2017-09-19 10:48:26 -04:00
Rob Rix
c25cb5e2e3 🔥 an extra .. 2017-09-19 10:02:26 -04:00
Rob Rix
fc99ede202 Short-circuit alternations with empty. 2017-09-19 08:23:33 -04:00
Rob Rix
b70ac76839 📝 the Empty & Alt constructors. 2017-09-19 07:21:31 -04:00
Rob Rix
d768faf60b Define an Alternative instance for Algorithm. 2017-09-19 07:20:54 -04:00
Rob Rix
c05a1be8c5 🔥 subalgorithmFor. 2017-09-18 16:06:34 -04:00
Rob Rix
a0c5fc79d2 🔥 a redundant import. 2017-09-18 10:51:40 -04:00
Rob Rix
ba96d10200 apply', not apply1'. 2017-09-18 10:51:09 -04:00
Rob Rix
228e35a00a Merge branch 'master' into substructural-diffing 2017-09-18 10:48:57 -04:00
Rob Rix
d4785068a0 Inject in Diffable. 2017-09-18 00:23:14 -04:00
Rob Rix
03f33436c3 🔥 use of the obsolete reinjection functions. 2017-09-15 11:11:56 -04:00
Rob Rix
ab43d4e3cc Temp. 2017-09-15 11:08:17 -04:00
Rob Rix
76c0801a9e subalgorithmFor takes a function holding a These of terms. 2017-09-14 18:13:45 -04:00
Rob Rix
3cf09f2eb2 Define subalgorithmFor for Unions. 2017-09-14 18:11:09 -04:00
Rob Rix
f4d1f5962e Add a subalgorithmFor method to Diffable. 2017-09-14 18:10:58 -04:00
Rob Rix
405ac100fc Reformat the signatures for algorithmFor. 2017-09-14 18:04:54 -04:00
Rob Rix
12d734f942 🔥 the Functor constraint in algorithmForTerms. 2017-09-14 15:47:37 -04:00
Rob Rix
8555672d58 🔥 the Functor constraint in algorithmForComparableTerms. 2017-09-14 15:47:16 -04:00
Rob Rix
995bcd6dea Fully apply the diff parameter. 2017-09-14 15:17:22 -04:00
Rob Rix
8e6c2e2789 Rename Diffable'/algorithmFor' to GDiffable/galgorithmFor. 2017-09-14 15:09:30 -04:00
Rob Rix
8bf3b6fb90 🔥 ScopedTypeVariables. 2017-09-14 15:08:43 -04:00
Rob Rix
650fe721ae 🔥 a redundant import. 2017-09-14 09:50:07 -04:00
Rob Rix
bfc0b9d0b0 Give Diff a pair of type parameters for the annotation types. 2017-09-14 09:41:52 -04:00
Rob Rix
b20ec9dddf Reformat a couple of type signatures. 2017-09-13 22:14:02 -04:00
Rob Rix
42b83b0e6d Add a second annotation type parameter to Algorithm. 2017-09-13 20:42:02 -04:00
Rob Rix
8816a1b705 Parameterize Algorithm by the annotation type. 2017-09-13 19:18:38 -04:00
Rob Rix
d612b22fca Make the term parameter * -> *. 2017-09-13 18:59:38 -04:00
Rob Rix
d353f798c5 Add annotation parameters to Algorithm. 2017-09-13 18:52:27 -04:00
Rob Rix
2776e56263 Split out a function constructing algorithms for comparable terms. 2017-09-13 14:06:26 -04:00
Rob Rix
b261cde1a4 Extract the generic algorithmFor implementation. 2017-09-13 11:48:51 -04:00
Rob Rix
f4e475104f Rename copy to merge. 2017-09-12 10:49:37 -04:00
Rob Rix
d5f3e0c9c4 🔥 a redundant import. 2017-09-11 16:21:10 -04:00
Rob Rix
c2f4ef3572 Merge branch 'relocate-json-fields' into directed-acyclic-diffs 2017-09-11 16:20:57 -04:00
Rob Rix
3cc8440fae Rename the TermF constructor to In. 2017-09-11 15:36:23 -04:00
Rob Rix
da7966a4c5 copy no longer takes its parameters in Both. 2017-09-11 12:28:56 -04:00
Rob Rix
3e496176cc Use the copy helper widely. 2017-09-09 11:57:56 +01:00
Rob Rix
b7e211c9c2 Redefine Term as a wrapper for TermF. 2017-09-09 11:47:10 +01:00
Rob Rix
1267fe5ea7 Rename the In constructor to Copy. 2017-09-09 11:27:04 +01:00
Rob Rix
9e40e9a09a Give our own definition of Diff. 2017-09-09 11:23:57 +01:00
Rob Rix
aa9d4c4f19 Give our own definition of CofreeF. 2017-09-08 16:40:23 +01:00
Rob Rix
1a6af2179b Give our own definition of Cofree. 2017-09-08 16:24:11 +01:00
Rob Rix
f7abab4186 Convince everything that we have MonadFree instances. 2017-08-16 14:17:50 -04:00