Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype ToOffset = ToOffset {
- unToOffset :: IntMap Int
- makeToOffset :: Text -> ToOffset
- toOffset :: ToOffset -> (Int, Int) -> Int
- newtype FromOffset = FromOffset {}
- makeFromOffset :: Text -> FromOffset
- fromOffset :: FromOffset -> Int -> (Int, Int)
- toAgdaPositionWithoutFile :: ToOffset -> Position -> PositionWithoutFile
- toAgdaRange :: ToOffset -> Text -> Range -> Range
- prettyPositionWithoutFile :: PositionWithoutFile -> String
Documentation
makeToOffset :: Text -> ToOffset Source #
Return a list of offsets of linebreaks ("n", "r" or "rn")
makeFromOffset :: Text -> FromOffset Source #
fromOffset :: FromOffset -> Int -> (Int, Int) Source #
toAgdaPositionWithoutFile :: ToOffset -> Position -> PositionWithoutFile Source #
LSP Position -> Agda PositionWithoutFile