1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
Commit Graph

54 Commits

Author SHA1 Message Date
Patrick Thomson
0802e0a9f2 Use a deep embedding for Tokenize. 2018-09-11 18:54:37 -04:00
Rob Rix
e5051bb021 Don’t re-export Mergeable. 2018-07-20 09:50:43 -04:00
Rob Rix
ccbd880155 Re-export Lower in Prologue. 2018-06-15 11:41:15 -04:00
Rob Rix
54150552b3 Merge branch 'master' into 🔥-galign 2018-05-29 08:53:37 -04:00
Patrick Thomson
dafb3edaf5 Merge remote-tracking branch 'origin/master' into update-fastsum 2018-05-16 18:26:43 -04:00
Patrick Thomson
322f348103 inj -> inject 2018-05-16 18:25:02 -04:00
Patrick Thomson
6b0198cb00 Remove otiose -Sum prefixes from all Data.Sum operations.
There are no modules where we use both Union.inj and Sum.injectSum; as
such, it seems clumsy for such ubiquitous functions as inj and prj to
have such long names when there is no ambiguity. This restores the
codebase to much how it looked before we switched back to a richer
Data.Union.
2018-05-16 15:27:08 -04:00
Rob Rix
e3b8915711 Re-export Hashable1. 2018-05-16 14:43:58 -04:00
Patrick Thomson
2c4e3a0ca7 just don't export Trace at all 2018-05-08 12:06:34 -04:00
Patrick Thomson
e9feb98835 Convert Graph and Task to use effectful traces.
This also removes `trace` from Prologue, since the monadic version is better.
2018-05-08 11:48:00 -04:00
Rob Rix
ebc8e01cc4 Use our own local definition of Sum. 2018-05-02 12:00:15 -04:00
Rob Rix
ba52638f40 🔥 maybeFail. 2018-04-24 11:48:43 -04:00
joshvera
aa3b2a0532 Add fromMaybeLast and maybeLast 2018-04-16 15:48:45 -04:00
Rob Rix
dd884e7615 🔥 all the instances of GAlign. 2018-04-09 16:17:16 -04:00
joshvera
adc5a54d45 Beautify Prologue to test 2018-03-22 13:01:25 -04:00
Patrick Thomson
9d5ace795b Take a pass at fixing/silencing linter hints.
Since @charliesome was expressing trouble with keeping custom infix
operator precedence straight (a very fair complaint, and one that I
have trouble with too), I thought it best to make sure that master
builds with clean hlints. I propose we make CI check that `hlint src`
executes cleanly.
2018-03-20 10:41:53 -04:00
Patrick Thomson
0f0ae1077d Merge remote-tracking branch 'origin/master' into bitwise 2018-03-16 10:06:30 -04:00
Patrick Thomson
8359d4d3e4 oops 2018-03-15 16:32:48 -04:00
Patrick Thomson
9cbad7ef8f Merge remote-tracking branch 'origin/master' into maybem 2018-03-15 16:31:24 -04:00
Patrick Thomson
1ab4bd0c9d Add maybeM and maybeFail.
`maybeM act may` returns the `Just` in `may` or runs `act`.
`maybeFail str may` fails with `str` as an error or extracts the `Just`.

These combinators are so useful that I don't know why they're not in
the Prelude or some library. I use them constantly.
2018-03-15 16:25:53 -04:00
Rob Rix
c81fafb184 Move foldMapA into the Prologue. 2018-03-15 16:14:51 -04:00
Patrick Thomson
a6346525e6 Add Evaluatable instance for Bitwise operators.
Would have been nice to reuise liftNumeric and liftNumeric2, but it's
not clear what it means to take bitwise components of rational or
floating-point numbers.
2018-03-14 11:25:06 -04:00
Timothy Clem
08c59a43d2 Merge remote-tracking branch 'origin/master' into typescript-exports 2018-03-12 15:30:28 -07:00
Rob Rix
e5b662f1ba 🔥 the re-export of Pointed. 2018-03-07 12:19:04 -05:00
joshvera
8426bbe598 Add Debug.Trace 2018-03-07 10:55:18 -05:00
joshvera
383fbf747b Merge remote-tracking branch 'origin/master' into prologue 2018-02-28 12:19:06 -05:00
joshvera
654bbd26d6 Hide unless and when 2018-02-28 11:46:42 -05:00
joshvera
e2d30b286c sort 2018-02-28 11:33:24 -05:00
joshvera
9963f4a2b0 expose Monoid typeclass 2018-02-28 11:27:25 -05:00
joshvera
766f960e91 Add some more modules
Control.Exception
Don't import all of Data.Monoid newtypes
2018-02-27 18:13:25 -05:00
joshvera
dec2f2b22e Add more modules
MonadError
GHC.Stack
Data.Hashable
Data.These
Data.Functor.Classes.Generic
Data.Traversable
Control.Arrow
Both
GAlign
Mergeable
Bifoldable
Bitraversable
2018-02-27 17:43:50 -05:00
joshvera
0bb2866a83 Add MonadFail to Prologue 2018-02-27 16:33:47 -05:00
joshvera
8f33a03b45 Add Algebra, Bifunctor, and ByteString to Prologue 2018-02-27 12:15:03 -05:00
joshvera
8ddaaa9d92 Add Foldable and NonEmpty to Prologue 2018-02-27 12:08:13 -05:00
joshvera
89914a3556 Stub out a Prologue with an implicit prelude 2018-02-27 12:04:05 -05:00
joshvera
256f3ebea4 Add Prologue 2018-02-27 10:37:09 -05:00
Rob Rix
7da8799e08 🔥 Prologue & protolude. 2017-07-28 14:37:02 -04:00
Rob Rix
437f240929 free/runFree no longer require Functor instances. 2017-04-19 12:59:19 -04:00
Rob Rix
46b8a4d3fd cofree/runCofree no longer require Functor instances. 2017-04-19 12:57:48 -04:00
Rob Rix
7d284252c5 Migrate semantic-diff to lts-8.0. 2017-02-13 17:25:45 -05:00
joshvera
9cd616f7b3 Remove last from Prologue 2016-12-01 16:03:45 -05:00
Rick Winfrey
f0ae836d03 Make ana part of the Prologue 2016-11-09 17:40:56 -06:00
joshvera
8cf63a31f2 -Werror fixes 2016-09-27 10:36:03 -04:00
joshvera
bfe57829d6 Merge remote-tracking branch 'origin/master' into rws-large-diffs 2016-09-27 10:34:19 -04:00
Timothy Clem
140bd7860b Pattern match leaf in branches for correct use of 'the' 2016-09-19 17:39:30 -07:00
joshvera
16aae4d95d Move a few declarations into Prologue 2016-09-16 10:14:51 -04:00
Rob Rix
e4505a8be0 Protolude has traceShowId now apparently. 2016-09-14 16:33:33 -04:00
Rob Rix
190fa948e2 This is already getting exported via Protolude. 2016-08-04 08:52:25 -04:00
Rob Rix
de6d7edec2 Merge branch 'master' into cofree-and-bifunctors-sitting-in-a-tree-a-l-i-g-n-edly
# Conflicts:
#	semantic-diff.cabal
#	src/Alignment.hs
#	src/Control/Comonad/Cofree.hs
#	src/Data/Adjoined.hs
#	src/Diffing.hs
#	src/Interpreter.hs
#	src/Prologue.hs
#	src/Renderer/JSON.hs
#	src/Renderer/Patch.hs
#	src/Renderer/Split.hs
#	src/SplitDiff.hs
#	src/Term.hs
#	test/AlignmentSpec.hs
#	test/ArbitraryTerm.hs
#	test/PatchOutputSpec.hs
2016-05-27 09:35:26 -04:00
Rob Rix
f3804160f9 Add traceShowId to Prologue. 2016-05-26 16:02:45 -04:00