mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Add a convenience to construct Source Char.
This commit is contained in:
parent
d3a3b68752
commit
1f1be15a99
@ -66,5 +66,8 @@ spec = parallel $ do
|
||||
patchWithBoth (Delete ()) = Delete . fst
|
||||
patchWithBoth (Replace () ()) = runBothWith Replace
|
||||
|
||||
source :: String -> Source Char
|
||||
source = Source.fromList
|
||||
|
||||
info :: Int -> Int -> Info
|
||||
info = ((`Info` mempty) .) . Range
|
||||
|
Loading…
Reference in New Issue
Block a user