Copyright | (c) Eric Mertens 2023 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides the Position
type for tracking locations
in files while doing lexing and parsing for providing more useful
error messages.
This module assumes 8 column wide tab stops.
Documentation
A value annotated with its text file position
Located | |
|
Instances
Foldable Located Source # | Default instance |
Defined in Toml.Syntax.Position fold :: Monoid m => Located m -> m # foldMap :: Monoid m => (a -> m) -> Located a -> m # foldMap' :: Monoid m => (a -> m) -> Located a -> m # foldr :: (a -> b -> b) -> b -> Located a -> b # foldr' :: (a -> b -> b) -> b -> Located a -> b # foldl :: (b -> a -> b) -> b -> Located a -> b # foldl' :: (b -> a -> b) -> b -> Located a -> b # foldr1 :: (a -> a -> a) -> Located a -> a # foldl1 :: (a -> a -> a) -> Located a -> a # elem :: Eq a => a -> Located a -> Bool # maximum :: Ord a => Located a -> a # minimum :: Ord a => Located a -> a # | |
Traversable Located Source # | Default instance |
Functor Located Source # | Default instance |
Read a => Read (Located a) Source # | Default instance |
Show a => Show (Located a) Source # | Default instance |