shimmer-0.1.3.1: The Reflective Lambda Machine

Safe HaskellSafe
LanguageHaskell98

SMR.Data.Located

Synopsis

Documentation

data Location Source #

Location in a source file.

Constructors

L Int Int 

data Located a Source #

A thing located at the given range in a source file.

Constructors

LL Location Location a 

Instances

Show a => Show (Located a) Source # 

Methods

showsPrec :: Int -> Located a -> ShowS #

show :: Located a -> String #

showList :: [Located a] -> ShowS #

startOfLocated :: Located a -> Location Source #

Take the start point of a located thing.

endOfLocated :: Located a -> Location Source #

Take the end point of a located thing.

valueOfLocated :: Located a -> a Source #

Take the value of a located thing.

incCharOfLocation :: Int -> Location -> Location Source #

Increment the character position of a located thing.

incLineOfLocation :: Int -> Location -> Location Source #

Increment the line position of a located thing.