Patrick Thomson
bcedb937db
Merge branch 'master' into speed-up-foldMapA
2019-09-21 08:56:52 -04:00
Rob Rix
892a5c56c5
Depend on semantic-source.
2019-09-20 18:35:52 -04:00
Rob Rix
9f16418c8d
Merge branch 'master' into semantic-tags
2019-09-20 18:33:48 -04:00
Rob Rix
e96832f61e
Merge pull request #269 from github/semantic-source
...
Factor source code-related facilities into a new package
2019-09-20 18:13:50 -04:00
Rob Rix
77ff50bd06
Run the doctests from the right place.
2019-09-20 18:04:13 -04:00
Rob Rix
918bfb4e24
Apparently this should not exist.
2019-09-20 17:56:29 -04:00
Rob Rix
8df1345f32
Run semantic-source’s tests in CI.
2019-09-20 17:37:07 -04:00
Rob Rix
909fa63714
Define a byteRange_ lens for Loc.
2019-09-20 17:33:15 -04:00
Rob Rix
4bc5491a25
Extract lens to the top level.
2019-09-20 17:33:10 -04:00
Rob Rix
52bc7e640e
Rename locByteRange/locSpan to byteRange/span.
2019-09-20 17:32:52 -04:00
Rob Rix
955174211c
Use point to define emptyTerm.
2019-09-20 17:04:03 -04:00
Rob Rix
e28e81b3e4
📝 point.
2019-09-20 17:01:19 -04:00
Rob Rix
6356443dd1
Define a point constructor for Span.
2019-09-20 17:01:16 -04:00
Rob Rix
935acb47c3
📝 point.
2019-09-20 17:00:40 -04:00
Rob Rix
e08a49596e
Define a point fiunction for Range.
2019-09-20 17:00:24 -04:00
Rob Rix
0312300a40
Rename the spanStart/spanEnd fields to start/end.
2019-09-20 16:59:04 -04:00
Patrick Thomson
56e0c27846
Stray whitespace.
2019-09-20 16:52:34 -04:00
Patrick Thomson
aa61e7f565
We don't even need to define our own #.
2019-09-20 16:50:25 -04:00
Patrick Thomson
803817bc92
Whoops, forgot a plugin entry.
2019-09-20 16:47:07 -04:00
Rob Rix
7d1567e70a
🔥 a bunch of redundant hidden imports.
2019-09-20 16:45:12 -04:00
Patrick Thomson
8bf42329a4
Speed up foldMapA.
...
Some research in https://github.com/fused-effects/diffused-effects/pull/1
revealed that GHC sometimes fails to optimize newtype-unwrappers of
the foldMapA style sufficiently, and that you get better Core if you
rub some `coerce` on it. Since we use `foldMapA` in a lot of places,
this should have a positive impact.
2019-09-20 16:44:44 -04:00
Rob Rix
d59a44bc69
Rename the HasSpan span lens to span_.
2019-09-20 16:43:12 -04:00
Rob Rix
57c385d265
Rename the HasSpan start/end lenses to start_/end_.
2019-09-20 16:39:06 -04:00
Rob Rix
1e6ebd21a3
Rename posLine/posColumn to line/column.
2019-09-20 16:36:36 -04:00
Rob Rix
64ef37e790
Rename the line/column lenses to line_/column_.
2019-09-20 16:31:04 -04:00
Rob Rix
bb204715a1
Define lenses for the starts/ends of Range.
2019-09-20 16:27:11 -04:00
Rob Rix
a00a78e522
Merge branch 'master' into semantic-source
2019-09-20 16:16:34 -04:00
Rob Rix
c86186a414
🔥 a redundant import.
2019-09-20 16:13:46 -04:00
Rob Rix
2ce8b515b6
🔥 Data.Source.Spec.
2019-09-20 16:11:54 -04:00
Rob Rix
74693f4d66
Bring in the Source tests.
2019-09-20 16:11:53 -04:00
Patrick Thomson
86682d8cfe
De-suffix sourceBytes.
2019-09-20 16:03:45 -04:00
Patrick Thomson
f0567fdd20
De-suffix dropSource and takeSource.
2019-09-20 15:56:43 -04:00
Patrick Thomson
f17a2e858f
Remove Data.Source from the .cabal file.
2019-09-20 15:56:33 -04:00
Patrick Thomson
a422061bbd
Delete Data.Source.
2019-09-20 15:52:00 -04:00
Patrick Thomson
7b599a6499
Use Source.Source instead of Data.Source.
2019-09-20 15:51:49 -04:00
Patrick Thomson
948deb489f
Fixup remaining test cases.
2019-09-20 15:47:08 -04:00
Patrick Thomson
d929a8c78a
Make Data.Source reexport Source.Source.
2019-09-20 15:39:39 -04:00
Rob Rix
ca6a785ae3
Flip lineRangesWithin.
2019-09-20 15:24:57 -04:00
Timothy Clem
af35b2225a
Merge pull request #268 from github/dockerignore
...
A few more dockerignores
2019-09-20 12:22:32 -07:00
Rob Rix
8aae3128c6
Rename the Source symbols and recommend importing it qualified.
2019-09-20 15:21:51 -04:00
Rob Rix
b20dcf4a19
Copy Source in.
2019-09-20 15:13:50 -04:00
Rob Rix
f6e4864836
Move the span/range stuff into CMark.
2019-09-20 15:03:26 -04:00
Rob Rix
0f8e69c72f
Switch everything over to using Source.Loc.
2019-09-20 14:51:48 -04:00
Rob Rix
17c61c19d1
Switch everything over to using Source.Span.
2019-09-20 14:38:03 -04:00
Rob Rix
1d5e15010f
Switch everything over to using Source.Range.
2019-09-20 14:28:25 -04:00
Rob Rix
cc820515fa
Depend on semantic-source.
2019-09-20 14:27:59 -04:00
Timothy Clem
5ef7b8f623
Few more dockerignores
2019-09-20 11:24:46 -07:00
Timothy Clem
d7d76f3e6d
Merge pull request #266 from github/v0.7.1.0
...
Prepare for 0.7.1.0 release
2019-09-20 11:24:37 -07:00
Rob Rix
2748529c13
Copy Location in as Loc.
2019-09-20 14:16:42 -04:00
Timothy Clem
76668cbb29
Merge branch 'master' into v0.7.1.0
2019-09-20 11:09:09 -07:00