Copyright | (c) Eric Mertens 2023 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides a simple tuple for tracking pairs of values and their file locations.
Synopsis
- data Located a = Located {
- locPosition :: !Position
- locThing :: !a
Documentation
A value annotated with its text file position
Located | |
|
Instances
Foldable Located Source # | Default instance |
Defined in Toml.Located 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 |