Patrick Thomson
1f4a24b569
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-01-11 12:28:29 -05:00
Patrick Thomson
34cfa42584
rename spec and add toByteString
2019-01-11 12:27:47 -05:00
Patrick Thomson
b29633e0d6
Move the user type into User.
2019-01-11 11:58:13 -05:00
Patrick Thomson
5b73e89932
Introduce Present and Absent pattern synonyms for Nested.
2019-01-11 11:45:23 -05:00
Patrick Thomson
73ea843d23
Merge pull request #2327 from github/simplify-both
...
Simplify Data.Functor.Both.
2019-01-11 11:21:35 -05:00
Patrick Thomson
a4bd06f6be
Fix nomenclature and modules.
2019-01-11 11:20:58 -05:00
Patrick Thomson
60b024dd13
Fix the members that I omitted.
2019-01-10 19:01:19 -05:00
Patrick Thomson
cfc6d46a28
Merge branch 'master' into simplify-both
2019-01-10 18:39:21 -05:00
Timothy Clem
afb0bd0e74
Merge pull request #2330 from github/bump-tree-sitter
...
++tree-sitter-typescript for flow type in import_statement
2019-01-10 15:08:01 -08:00
Timothy Clem
06a0d29990
++tree-sitter-typescript for flow type in import_statement
2019-01-10 14:37:27 -08:00
Patrick Thomson
d7ad7e9fce
Add Repository entity and make sure they get pushed in repo pushes
2019-01-10 16:22:34 -05:00
Patrick Thomson
589524b21e
add fixtures for testing
2019-01-10 16:05:11 -05:00
Patrick Thomson
f750f2952a
Remove 'both' function.
2019-01-10 15:53:15 -05:00
Patrick Thomson
8140b8ef9d
Merge remote-tracking branch 'origin/master' into simplify-both
2019-01-10 13:54:04 -05:00
Patrick Thomson
742d7caf95
Merge pull request #2328 from github/bump-submodules-2019-01-08
...
Bump proto3-suite version and remove unneeded dependency.
2019-01-10 13:23:05 -05:00
Josh Vera
d4e9ab09a9
Merge pull request #2326 from github/add-hydro-data-types
...
Add data types for Kafka event messages.
2019-01-10 13:16:52 -05:00
Rob Rix
77b8e617c5
Merge branch 'master' into bump-submodules-2019-01-08
2019-01-10 09:20:47 -05:00
Rob Rix
dd4fbcbbb2
Merge branch 'master' into simplify-both
2019-01-10 09:10:16 -05:00
Patrick Thomson
3342435f2f
Bump proto3-suite version and remove unneeded dependency.
...
`proto3-suite` now depends on `ansi-wl-pprint` rather than
`wl-pprint`, which means we can remove the latter's pinned
dependency and its associated license files.
2019-01-08 19:07:04 -05:00
joshvera
d96e4d398f
lints
2019-01-08 18:38:30 -05:00
joshvera
aafabac94d
Remove duplicate declarations left in Syntax/TypeScript during merge
2019-01-08 18:25:59 -05:00
joshvera
6ec962659c
Fix imports
2019-01-08 18:19:20 -05:00
joshvera
707723981a
Add QualifedExport
2019-01-08 18:19:04 -05:00
Patrick Thomson
2e66bc3443
Simplify Data.Functor.Both.
...
Though the previous definition (a type synonym that wrapped `Join (,)`)
was clever, it required a number of orphan instances, as well as an extra
`both` function to simulate a `Both` constructor. Using an ordinary data
structure removes the need for orphan instances.
2019-01-08 17:34:47 -05:00
Patrick Thomson
288153acaa
Remove unnecessary Finite instances.
2019-01-08 16:06:17 -05:00
joshvera
b23352e163
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-01-08 15:54:43 -05:00
joshvera
346c19b902
Merge branch 'add-references-to-indexer-prototype' into indexer-prototype
2019-01-08 15:48:20 -05:00
Patrick Thomson
a91aa3030c
Better documentation for the extensions.
2019-01-08 15:36:33 -05:00
Patrick Thomson
2894edd428
Include Push events in the cabal file.
2019-01-08 15:30:12 -05:00
Patrick Thomson
bb204429a7
Make sure RequestContext has the instances it needs.
2019-01-08 15:21:39 -05:00
Patrick Thomson
8823d4857e
Use enumerateUpper for Type's instance of Finite.
2019-01-08 13:58:08 -05:00
Patrick Thomson
39bdfdf01f
Add Hydro data types corresponding to proposed push schema.
...
Provides a `Push` type. To build that, we needed `RequestContext`,
`UserType`, `RequestMethod`, `Spamurai`, `Timestamp`, and `IPVersion`.
The schemas have all been taken from https://github.com/github/hydro-schemas/ .
2019-01-08 13:55:09 -05:00
Josh Vera
b153fe8c2c
Merge pull request #2322 from github/deriving-via
...
Use -XDerivingVia to clean up Eq1/Show1/Ord1/Semigroup/Monoid instances.
2019-01-08 11:04:38 -05:00
Patrick Thomson
00abc88daa
Remove unneeded extensions and document Generically.
2019-01-07 16:30:07 -05:00
Patrick Thomson
9c14b6fd85
Fix license version.
2019-01-07 16:23:26 -05:00
Patrick Thomson
2618b30f79
DerivingVia over TypeScript/JavaScript.
2019-01-07 16:21:15 -05:00
Patrick Thomson
6983f55e1c
DerivingVia for Syntax.Directive.
2019-01-07 16:20:54 -05:00
Patrick Thomson
b91675f2cf
Some Haskell instances I forgot.
2019-01-07 16:20:33 -05:00
Patrick Thomson
bf2ee5a3f4
DerivingVia over PHP.
2019-01-07 16:10:13 -05:00
Patrick Thomson
f2bb7eeb8d
DerivingVia over Java syntax.
2019-01-07 16:04:21 -05:00
Patrick Thomson
d2639d096b
DerivingVia over the Haskell syntax modules.
2019-01-07 16:01:42 -05:00
Patrick Thomson
d2fffe1c89
DerivingVia over Markdown.
2019-01-07 15:53:10 -05:00
Patrick Thomson
0482798bfb
DerivingVia over Python and Ruby.
2019-01-07 15:51:41 -05:00
Patrick Thomson
a7db55081a
DerivingVia over Go syntax.
2019-01-07 15:51:28 -05:00
Patrick Thomson
e0bb9e4a08
DerivingVia over Syntax and Syntax.Type.
2019-01-07 15:45:00 -05:00
Patrick Thomson
c778de4585
DerivingVia over Comment.
2019-01-07 15:39:44 -05:00
Patrick Thomson
b32a728b84
DerivingVia over Syntax.Declaration.
2019-01-07 15:37:24 -05:00
Patrick Thomson
e0d5e7f54b
DerivingVia over Syntax.Statement.
2019-01-07 15:33:50 -05:00
Patrick Thomson
d4c9702d7e
Introduce Generically functor and convert Expression/Literal to use it.
2019-01-07 15:33:43 -05:00
Patrick Thomson
1302fe4ac8
Use -XDerivingVia to clean up our Semigroup/Monoid instances.
...
Now that we're on GHC 8.6, we can use `-XDerivingVia` in many cases
where we previously had to write instances by hand. If you're not
familiar with `-XDerivingVia`, the [GHC proposal][ghc] is a good place
to start.
[ghc]: https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0023-deriving-via.rst
Thanks to the `generic-monoid` package, we can derive a `Semigroup`
instance for any product type whose members are `Semigroups`, and the
same goes for `Monoid`. This entails an extra dependency, but it is
better than the `generic-deriving` package, which is way too much overhead.
I've also switched some trivial definitions to newtype-deriving.
Please be aware that this bumps `hlint` and `haskell-src-exts` so that
`hlint` doesn't choke on the `DerivingVia` extension. You'll need to
`stack install hlint` to get it on your `PATH`. Apologies!
2019-01-07 11:23:11 -05:00