Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
location :: ByteString -> Int -> Location Source #
O(n) in the size of the input bytestring to actually use one. If used primarily for error location reporting, then this probably puts the burden in the right place.
Deliberately lazy, so we don't bother to compute the exact line and column until forced.