1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
Commit Graph

1057 Commits

Author SHA1 Message Date
Matt Diephouse
3a9803ee15 Make Renderer take a pair of Source Chars 2016-01-14 15:09:47 -05:00
Josh Vera
6966a797a6 Merge pull request #406 from github/formats-and-renderers
Formats and Renderers
2016-01-14 13:58:14 -05:00
Matt Diephouse
0ed87b80d4 Clarify the documentation for Annotated 2016-01-14 13:50:19 -05:00
Matt Diephouse
b05c9e2ca5 s/nodes/terms/ 2016-01-14 13:47:56 -05:00
Matt Diephouse
9c4ea153bc Add a Renderer type for rendering diffs 2016-01-14 13:18:40 -05:00
Matt Diephouse
2a8da4acc3 Document declarations in Parser.hs 2016-01-14 12:35:42 -05:00
Matt Diephouse
bf86574fa6 Document declarations in Diff.hs 2016-01-14 12:30:21 -05:00
Matt Diephouse
9c272a40d7 Document declarations in Patch.hs 2016-01-14 11:18:57 -05:00
Matt Diephouse
640449e2f3 Document declarations in Categorizable.hs 2016-01-14 09:17:12 -05:00
Matt Diephouse
a5126d9855 After, not by. 2016-01-13 16:20:29 -05:00
Matt Diephouse
fde0749cf0 Correct the directionality 2016-01-13 16:19:48 -05:00
Matt Diephouse
faab2338de Document the declarations in Source.hs 2016-01-13 15:50:52 -05:00
Matt Diephouse
c0c3a69bcf Document the declarations in Term.hs 2016-01-13 15:35:40 -05:00
Matt Diephouse
a2643cef82 eta reduction 2016-01-13 15:32:03 -05:00
Matt Diephouse
5eb6ea0996 Document the declarations in Range.hs 2016-01-13 14:38:57 -05:00
Matt Diephouse
75e4f2b7bd Merge match, parse, and recurse into a single function 2016-01-13 14:06:59 -05:00
Matt Diephouse
52a8661390 Swap parameter order and eta reduce 2016-01-13 14:00:57 -05:00
Matt Diephouse
6f882be685 Extract the recursion into a function 2016-01-13 13:57:28 -05:00
Matt Diephouse
bc95741b0d Swap parameter order and eta reduce 2016-01-13 13:55:09 -05:00
Matt Diephouse
58b4e8a985 Extract saving of a word 2016-01-13 13:54:49 -05:00
Matt Diephouse
d7001befc6 Add a parse function to handle recursing 2016-01-13 13:52:07 -05:00
Matt Diephouse
8acdaaf1f5 Call it match instead of parse 2016-01-13 13:25:54 -05:00
Matt Diephouse
cc5a1b7736 Let the transform take 2 arguments 2016-01-13 13:03:11 -05:00
Matt Diephouse
09bdf89982 Make parse handle the fmap 2016-01-13 12:53:31 -05:00
Matt Diephouse
c478e19af6 Don't pass in string 2016-01-13 12:44:22 -05:00
Matt Diephouse
b5b00505cc Make take and skip take predicates 2016-01-13 12:39:52 -05:00
Matt Diephouse
06468b59de Negate isWordOrSpace and call it isPunctuation 2016-01-13 12:18:19 -05:00
Matt Diephouse
205f733132 Call these take and skip 2016-01-13 12:12:52 -05:00
Matt Diephouse
9d90206367 Use option instead of fromMaybe 2016-01-13 10:04:27 -05:00
Matt Diephouse
fd1305acd1 Move unionRange to be by unionRanges 2016-01-13 10:04:27 -05:00
Matt Diephouse
473866cb6a Use Option instead of creating a Union type 2016-01-13 10:04:26 -05:00
Matt Diephouse
f1cd77c9c3 Create a new type for unioning Range with a Monoid
The existing Monoid Range violated the Monoid identity law.
2016-01-13 10:04:26 -05:00
Matt Diephouse
f3dfe1c404 Use rangeLength 2016-01-12 11:56:36 -05:00
Matt Diephouse
1ebe7bb5ed Add a function to compute a range's length 2016-01-12 11:52:38 -05:00
Rob Rix
7af5a4876a Move OrderedMap into Data. 2016-01-06 11:56:58 -05:00
Rob Rix
6c858694b8 Fuse our passes over the sides of the rows. 2016-01-04 13:49:53 -05:00
Rob Rix
0f30598055 Unpack a row into a pair of lines. 2016-01-04 13:49:14 -05:00
Josh Vera
2bffbe9537 Merge pull request #353 from github/patch
Patch output
2016-01-04 12:13:09 -05:00
Rob Rix
423858ef41 Revert "Derive Functor, Foldable, and Traversable using pragmas."
This reverts commit 949f9cab01bc57b892e8b33dc244846c7cf05004.
2016-01-04 12:05:08 -05:00
Rob Rix
1d6e5f41d8 Revert "Derive Generic using pragmas."
This reverts commit 1fad159e459179d96d6991eaa403c891144702c4.
2016-01-04 12:04:23 -05:00
Rob Rix
b92ae5159d Revert "Add overloaded strings to the Split & TreeSitter modules."
This reverts commit 1138ce8ff7deb0335c9e4506ed4ffb9455005c29.
2016-01-04 12:03:12 -05:00
Rob Rix
9f31e74988 Add overloaded strings to the Split & TreeSitter modules. 2016-01-04 09:28:09 -05:00
Rob Rix
045fff11ab Add FlexibleInstances pragmas to the files that need them. 2016-01-04 09:25:37 -05:00
Rob Rix
692fd83e09 Derive Generic using pragmas. 2016-01-04 09:22:36 -05:00
Rob Rix
53ab519bed Derive Functor, Foldable, and Traversable using pragmas. 2016-01-04 09:19:38 -05:00
Rob Rix
243d3b502d Import Data.Foldable for foldl'. 2015-12-30 19:07:33 -05:00
Rob Rix
09459a3421 Merge branch 'master' into patch 2015-12-30 18:55:42 -05:00
Rob Rix
c0997d4695 Merge pull request #372 from github/use-text
Transcode files to unicode before parsing
2015-12-30 18:51:44 -05:00
Rob Rix
c6ef5b4ef8 Remove showRow. 2015-12-30 18:37:38 -05:00
Rob Rix
3f22926e86 Use showLines to render trailing context. 2015-12-30 18:37:25 -05:00