Rob Rix
1aa33a2123
We don’t need DerivingVia now.
2019-10-08 15:46:04 -04:00
Rob Rix
a29670de49
🔥 GCompileSum.
2019-10-08 15:45:48 -04:00
Rob Rix
cb7ddc22a8
🔥 CompileSum.
2019-10-08 15:45:29 -04:00
Rob Rix
80b43c4009
Specialize the instance for :+:.
2019-10-08 15:45:08 -04:00
Rob Rix
1506aed1a7
Use GND for the PrimaryExpression instance.
2019-10-08 15:44:19 -04:00
Rob Rix
34bf5ad033
📝 ShowSum'.
2019-10-08 15:43:24 -04:00
Rob Rix
a2312d1185
📝 ShowSum.
2019-10-08 15:42:21 -04:00
Rob Rix
78cc4835fc
📝 the error case.
2019-10-08 15:41:20 -04:00
Rob Rix
5d4317031a
📝 the right-recursive instance.
2019-10-08 15:41:16 -04:00
Rob Rix
5242e394df
📝 the left-recursive instance.
2019-10-08 15:41:10 -04:00
Rob Rix
579e5792e8
📝 the reflexive instance.
2019-10-08 15:41:02 -04:00
Rob Rix
ea0a4c99b8
📝 Element'.
2019-10-08 15:40:54 -04:00
Rob Rix
acbb1e7cd5
📝 <>.
2019-10-08 15:40:48 -04:00
Rob Rix
607f8263a5
📝 Find'.
2019-10-08 15:40:41 -04:00
Rob Rix
83bead5840
📝 Find.
2019-10-08 15:40:34 -04:00
Rob Rix
abb6eff40f
📝 Side.
2019-10-08 15:40:28 -04:00
Rob Rix
31ba6be9d8
Note the custom error message.
2019-10-08 15:40:23 -04:00
Rob Rix
f27729ab14
Move the 'None instance up.
2019-10-08 15:39:08 -04:00
Rob Rix
3334ec81d3
🔥 OVERLAPPABLE.
2019-10-08 15:37:52 -04:00
Rob Rix
711ec1957d
📝 Prj.
2019-10-08 15:35:07 -04:00
Rob Rix
3051c8cace
Spacing.
2019-10-08 15:34:47 -04:00
Rob Rix
da227888ce
Rename Elem to Find.
2019-10-08 15:34:33 -04:00
Rob Rix
da890fa747
Redefine Element using a type family computing which side to recur on.
...
This avoids having to reassociate the tree, which is considerably more expensive for balanced trees.
2019-10-08 15:30:37 -04:00
Rob Rix
75ed50c574
List the imports from GHC.Generics.
2019-10-08 15:20:58 -04:00
Rob Rix
a307d0757a
Define a pattern synonym for matching out of sums.
2019-10-08 15:10:33 -04:00
Rob Rix
4e194a5943
📝 prj.
2019-10-08 15:08:37 -04:00
Rob Rix
ad1de17e64
📝 Element.
2019-10-08 15:08:17 -04:00
Rob Rix
49cba72090
Update semantic-java.
2019-10-08 15:04:00 -04:00
Patrick Thomson
b727562545
No reprinting spec necessary.
2019-10-08 15:03:34 -04:00
Patrick Thomson
3b4b9dc95e
fix stray typo and remove spec invocations
2019-10-08 15:02:33 -04:00
Rob Rix
51e74b9b1e
Update semantic-python.
2019-10-08 15:01:34 -04:00
Rob Rix
5e3afdb2da
Revert " 🔥 AST.Element for now."
...
This reverts commit ad43b0c1a2
.
2019-10-08 14:45:21 -04:00
Patrick Thomson
693c317bf0
Remove experimental reprinting and rewriting facilities.
...
As we shift to a precise, non-DTALC representation of language syntax,
the foundations upon which our (experimental) reprinting and rewriting
framework are becoming questionable. These experiments are not hooked
up anywhere (except the tests), constitute a considerable amount of
code, and are getting in the way of @robrix and myself lately.
I like a lot of this code, but if we're not using it, it's our moral
imperative to delete it, if only to reduce the carbon emissions
associated with our CI builds. We can always rescuscitate it from the
git history if we find ourselves wanting it back.
2019-10-08 14:41:31 -04:00
Rob Rix
a67b67db6f
Merge branch 'master' into precise-json
2019-10-08 14:36:36 -04:00
Patrick Thomson
c33eed2da7
Merge pull request #317 from github/core-source-loc-name
...
Use semantic-source in semantic-core & represent Name as a newtype
2019-10-07 21:35:07 -04:00
Patrick Thomson
665429fa92
We have these JSON instances already.
2019-10-07 20:16:54 -04:00
Patrick Thomson
8d9c7b9277
Unnecessary parens.
2019-10-07 17:46:07 -04:00
Patrick Thomson
a001a02b5c
Formatting.
2019-10-07 17:46:06 -04:00
Patrick Thomson
7eaf7423e0
Fix the generators and kill some unused imports.
2019-10-07 17:45:53 -04:00
Patrick Thomson
ae46a7b105
Make Data.Name.Name a newtype rather than a synonym.
...
The fact that `Name` was a simple alias for `Text` was creeping into
the error messages I'm seeing in `semantic-python`, which was a bit of
a buzzkill. This remedies that.
2019-10-07 17:45:53 -04:00
Rob Rix
527ad69cbd
Merge branch 'master' into core-source-loc-name
2019-10-07 17:41:26 -04:00
Rob Rix
dcc228d1fa
Update for the new shape of Name.
2019-10-07 17:36:35 -04:00
Rob Rix
c5fe348ed3
Simplify locFromTSSpan.
2019-10-07 17:34:15 -04:00
Rob Rix
16b475c57f
Rename FailWithLocC to FailC.
2019-10-07 17:26:37 -04:00
Rob Rix
1391e75a14
Move FailWithLocC into its own module.
2019-10-07 17:25:11 -04:00
Patrick Thomson
d5f8248fd1
Merge branch 'master' into remove-shelly
2019-10-07 17:23:47 -04:00
Rob Rix
89e0185371
Stub in a module for FailWithLoc.
2019-10-07 17:21:23 -04:00
Rob Rix
a93327f46d
🔥 emptySpan.
2019-10-07 17:19:16 -04:00
Rob Rix
36eb0df4a9
Don’t use emptySpan in the doctests.
2019-10-07 17:18:53 -04:00
Rob Rix
d70f95fa56
Don’t re-export Span/Pos.
2019-10-07 17:18:18 -04:00