1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/Semantic
Patrick Thomson 060c8f50ff Refactor: use pattern synonyms to construct BlobPairs.
The `BlobPair` type is defined as an alias for `Join These Blob`. Though
this sacrifices a degree of type safety, it's extremely convenient, as
you can get to a Functor and Bifunctor instance very quickly.
Pattern-matching on `BlobPair` is less elegant though, as it requires
a nested Join then a match on `These`, which is not immediately
indicative of what a given pair might do.

This adds pattern synonyms for the `Inserting`, `Deleting`, and
`Diffing` cases, and removes the less-expressive functions returning such.
2019-03-01 11:19:24 -05:00
..
CLI Case Api as generated 2019-02-12 12:49:34 -08:00
IO Refactor: use pattern synonyms to construct BlobPairs. 2019-03-01 11:19:24 -05:00
Stat Refactor Stats addr 2018-06-15 10:31:51 -07:00
Spec.hs Case Api as generated 2019-02-12 12:49:34 -08:00