1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00
Commit Graph

4329 Commits

Author SHA1 Message Date
Matt Diephouse
140cfa88b6 Try to make the overall structure clearer 2016-01-14 15:27:47 -05:00
Matt Diephouse
55666a5586 Monadically 2016-01-14 15:13:26 -05:00
Matt Diephouse
61b65533ef printDiff can return a Renderer now 2016-01-14 15:10:56 -05:00
Matt Diephouse
3a9803ee15 Make Renderer take a pair of Source Chars 2016-01-14 15:09:47 -05:00
Matt Diephouse
fa68f78c39 Put the diff first 2016-01-14 14:56:00 -05:00
Matt Diephouse
78852e4041 Get rid of the where clause 2016-01-14 14:54:43 -05:00
Matt Diephouse
44a1c68f8f Create a separate diff function 2016-01-14 14:54:30 -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
Josh Vera
19f41e5883 Merge pull request #405 from github/document-thy-functions-2
Document thy functions 2
2016-01-14 13:58:03 -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
f0760188b9 Rename Renderer to Format
This is more consistent with the terminology around the command-line
`diff` tool.
2016-01-14 13:12:28 -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
Rob Rix
50422673b6 Merge pull request #402 from github/document-thy-functions
Document some things
2016-01-13 16:31:25 -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
8d22bd0f5a Document the declarations in Main.hs 2016-01-13 14:29:37 -05:00
Josh Vera
f839196dd7 Merge pull request #401 from github/rangesAndWordsFrom
Refactor rangesAndWordsFrom
2016-01-13 14:14:38 -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
Josh Vera
138bc0bbef Merge pull request #400 from github/bad-monoid
Make Range an instance of Semigroup instead of Monoid
2016-01-13 10:22:14 -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
06a862bdc2 Merge pull request #399 from github/actually-build-ICU
Build ICU on Darwin.
2016-01-13 09:54:56 -05:00
Rob Rix
a1a8c94617 Bump vendor/text-icu. 2016-01-13 09:20:10 -05:00
Rob Rix
bfbb1745dd Just include-dirs. 2016-01-12 20:49:46 -05:00
Rob Rix
57cee8f754 Extra include dirs. 2016-01-12 20:47:50 -05:00
Rob Rix
47ed985a6a Add the homebrew icu4c path to extra-lib-dirs on Darwin. 2016-01-12 20:39:04 -05:00
Rob Rix
b60a232bd6 Merge pull request #397 from github/range-length
Add a function to compute a range's length
2016-01-12 12:15:46 -05:00