yi-rope 0.7.0.0 → 0.7.0.1
raw patch · 2 files changed
+5/−5 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- src/Yi/Rope.hs +4/−4
- yi-rope.cabal +1/−1
src/Yi/Rope.hs view
@@ -114,7 +114,7 @@ -- | Counts number of newlines in the given 'TX.Text'. countNl :: TX.Text -> Int-countNl = TX.count (TX.pack "\n")+countNl = TX.count "\n" instance Monoid Size where mempty = Indices 0 0@@ -229,9 +229,9 @@ -- one will be the specified size so we can optimise here instead -- of having to recompute chunk size at creation. r :: FingerTree Size YiChunk -> [TX.Text] -> FingerTree Size YiChunk- r tr [] = tr- r tr [!ts] = tr |- mkChunk TX.length ts- r tr (!t:ts) = let r' = tr |- mkChunk (const n) t+ r !tr [] = tr+ r !tr (t:[]) = tr |- mkChunk TX.length t+ r !tr (t:ts) = let r' = tr |- mkChunk (const n) t in r r' ts -- | Converts a 'TX.Text' into a 'YiString' using
yi-rope.cabal view
@@ -1,5 +1,5 @@ name: yi-rope-version: 0.7.0.0+version: 0.7.0.1 synopsis: A rope data structure used by Yi description: A rope data structure used by Yi license: GPL-2