1
1
mirror of https://github.com/github/semantic.git synced 2024-12-02 11:23:05 +03:00
Commit Graph

67 Commits

Author SHA1 Message Date
Ayman Nadeem
e3a46c4405 stub out functor instance 2020-04-24 13:32:18 -04:00
Ayman Nadeem
d1dcb4c09e this will be a datatype isomorphic to Either 2020-04-24 13:32:09 -04:00
Ayman Nadeem
1e145cae9c create AST.Parse 2020-04-24 12:47:55 -04:00
Ayman Nadeem
2d36330145 remove extra line 2020-04-24 12:47:39 -04:00
Ayman Nadeem
a6625780e9 format import statement 2020-04-22 10:36:24 -04:00
Patrick Thomson
04d305dd54 Didn't mean for this to creep in. 2020-04-08 15:39:03 -04:00
Patrick Thomson
717b9f1f3f Use Identity as the shape parameter for now. 2020-04-07 15:12:10 -04:00
Patrick Thomson
64c0bd8aa1 Generate Unmarshal instances over Identity 2020-04-07 15:10:06 -04:00
Patrick Thomson
c2ad4c0544 Fix the Ord and SymbolMatching instances. 2020-04-02 13:18:38 -04:00
Patrick Thomson
21ec3dd1d7 Move unmarshal to a standalone instance. 2020-04-02 12:40:05 -04:00
Patrick Thomson
57b9cdaf52 Apply the shape parameter to product types' children. 2020-04-02 12:29:26 -04:00
Patrick Thomson
d1184371ee Gosh, the Template Haskell docs are really illucid. 2020-04-01 13:12:10 -04:00
Patrick Thomson
b43e761fbb rename these since I kept getitng them the wrong way around 2020-04-01 12:40:32 -04:00
Patrick Thomson
f4ea534a1a This cleans up the generated signatures a litttle. 2020-04-01 12:20:37 -04:00
Patrick Thomson
5925adb081 Use listT for better TH output. 2020-04-01 11:44:56 -04:00
Patrick Thomson
b60e5d874f Eliminate unused parameter. 2020-04-01 11:44:20 -04:00
Patrick Thomson
966d85153d Accidentally swapped these parameters. 2020-04-01 11:43:59 -04:00
Patrick Thomson
555610d65c Use extraTypeParameterName in the newtype declarations. 2020-04-01 11:23:40 -04:00
Patrick Thomson
72b0702025 Only need to pass one parameter to makeTraversalInstances. 2020-04-01 11:23:08 -04:00
Patrick Thomson
7b186f044c Provide enough parameters to types in HasField instances. 2020-04-01 11:21:55 -04:00
Patrick Thomson
8d62ad3b91 Merge remote-tracking branch 'origin/master' into codegen-cleanup 2020-04-01 11:05:40 -04:00
Ayman Nadeem
17dd419f9b use mkName instead of newName 2020-02-20 18:19:15 -05:00
Ayman Nadeem
681442c89b don't interpolate f 2020-02-20 18:19:04 -05:00
Ayman Nadeem
181fa11b58 capitalize N 2020-02-20 16:42:16 -05:00
Ayman Nadeem
38aaae5ff4 capitalize T 2020-02-20 16:42:09 -05:00
Ayman Nadeem
f9945cbb4c supply extraTypeParameter 2020-02-20 16:41:08 -05:00
Ayman Nadeem
8c9c6ed7ec need an extra type parameter for field types 2020-02-20 16:40:38 -05:00
Ayman Nadeem
6c9f3d451e call f before constructor 2020-02-20 16:11:25 -05:00
Ayman Nadeem
615d760ff0 varT, not conT, because we have a type variable not a constructor 2020-02-20 16:11:07 -05:00
Ayman Nadeem
de828d608e delete ty' 2020-02-20 16:10:44 -05:00
Ayman Nadeem
64cf6601c7 construct extraParameterName 2020-02-20 16:10:22 -05:00
Ayman Nadeem
7d551762bb add extraTypeParameterName to symbolMatchinstance 2020-02-20 16:10:13 -05:00
Ayman Nadeem
acecb82e5f add an extra arg to symbolMatchingInstance 2020-02-20 16:09:52 -05:00
Ayman Nadeem
8b27bf0cd6 change variable to make it consistent for debugging 2020-02-20 16:09:35 -05:00
Ayman Nadeem
f67e55ab66 supply f to traversableInstances definition 2020-02-20 15:34:09 -05:00
Ayman Nadeem
76ca0060bc add an extra type parameter 2020-02-20 15:31:21 -05:00
Ayman Nadeem
1b22b0995c f should come first cosmetically 2020-02-20 15:31:05 -05:00
Ayman Nadeem
db804ecb23 f should come first 2020-02-20 15:30:39 -05:00
Ayman Nadeem
ecdaa12345 we can supply the extra parameter to the creation of a datatype 2020-02-20 15:08:23 -05:00
Ayman Nadeem
c7ac076a59 we want an additional type parameter, so it's f a not just a 2020-02-20 15:07:59 -05:00
Ayman Nadeem
74f35e309a rename TestHelpers for real 2020-02-20 14:53:19 -05:00
Ayman Nadeem
507f1c21a4 scope should be clear without TH. 2020-02-20 13:52:45 -05:00
Ayman Nadeem
037b03307e use TH functions instead of constructors to standardize 2020-02-20 13:48:31 -05:00
Timothy Clem
68bc0f68d5 Bring back tree-sitter corpus tests for go 2020-02-20 10:38:52 -08:00
Ayman Nadeem
a1a2ca1533 use TH.plainTV instead of TH.PlainTV 2020-02-14 16:29:19 -05:00
Ayman Nadeem
82a0062f3c change AST.Test to AST.TestHelpers 2020-02-14 11:33:01 -05:00
Ayman Nadeem
3ef135e2d1 refactor 2020-02-13 17:17:27 -05:00
Ayman Nadeem
aed2ce774f simplify readability 2020-02-13 16:51:59 -05:00
Ayman Nadeem
4d744ffdd9 use constructor instead of String in signature 2020-02-13 16:17:26 -05:00
Ayman Nadeem
5a94fda83a factor out repeated traversalInstances 2020-02-13 16:07:35 -05:00