Closed alanz closed 5 years ago
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.
span
takeWhile
dropWhile
or feeding the output of rowColumnCodeUnits to splitAt.
rowColumnCodeUnits
splitAt
Added in version 0.3.1.0.
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