splitAtLine missing
alanz opened this issue · comments
We are using this in haskell-ide-engine at https://github.com/haskell/haskell-ide-engine/blob/master/hie-plugin-api/Haskell/Ide/Engine/PluginUtils.hs#L288-L293
cc @ndmitchell
And it looks like it can be done using some combination of span
, takeWhile
, dropWhile
.
or feeding the output of rowColumnCodeUnits
to splitAt
.
Added in version 0.3.1.0.