1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
Commit Graph

4313 Commits

Author SHA1 Message Date
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
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
Josh Vera
f81c736f2f Merge pull request #391 from github/d-e-p-l-o-y-m-e-n-t
Build on Linux CI
2016-01-12 12:00:22 -05:00
Matt Diephouse
f3dfe1c404 Use rangeLength 2016-01-12 11:56:36 -05:00
Rob Rix
662e14448e Just link the libs on Darwin (I hope, oh god I hope) 2016-01-12 11:55:23 -05:00
Matt Diephouse
1ebe7bb5ed Add a function to compute a range's length 2016-01-12 11:52:38 -05:00
Rob Rix
fe759bb6cd Now with 100% more correct syntax! 2016-01-12 11:46:11 -05:00
Rob Rix
d37fcb287e Don’t use script/g++ on Darwin. 2016-01-12 11:42:55 -05:00
Rob Rix
b0af8a0e42 Merge branch 'master' into d-e-p-l-o-y-m-e-n-t 2016-01-12 11:31:46 -05:00
Josh Vera
42b1037df9 Merge pull request #396 from github/refactor-replace-leaves
Refactor `replaceLeavesWithWordBranches`
2016-01-12 11:14:54 -05:00
Matt Diephouse
fca9bb3dd2 Remove redundant do 2016-01-12 11:05:10 -05:00
Matt Diephouse
d2b4c48045 Rename replaceLeavesWithWordBranches to breakDownLeavesByWord 2016-01-12 11:01:13 -05:00
Matt Diephouse
a62d1defe2 Extract range and word extraction 2016-01-12 10:59:13 -05:00
Matt Diephouse
4dee96a7c2 Define by pattern matching instead of case analysis 2016-01-12 10:53:45 -05:00
Matt Diephouse
63a6bf326b Use cata in replaceLeavesWithWordBranches 2016-01-12 10:47:55 -05:00
Matt Diephouse
bce530858d Only deconstruct Info for leaves 2016-01-12 10:35:58 -05:00
Matt Diephouse
0ca0b4d453 Refactor to remove guard clause 2016-01-12 10:34:17 -05:00
Matt Diephouse
1cb83b4ea6 Get rid of substringing 2016-01-12 10:28:46 -05:00