pro-source-0.1.0.0: Utilities for tracking source locations
Copyright© 2019 James Alexander Feldman-Crough
LicenseMPL-2.0
Safe HaskellNone
LanguageHaskell2010

ProSource.Location

Description

 
Synopsis

Documentation

data Location Source #

A location in a Source, with the line and column number computed lazily.

Constructors

Location 

Fields

Instances

Instances details
Eq Location Source # 
Instance details

Defined in ProSource.Location

Show Location Source # 
Instance details

Defined in ProSource.Location

Generic Location Source # 
Instance details

Defined in ProSource.Location

Associated Types

type Rep Location :: Type -> Type #

Methods

from :: Location -> Rep Location x #

to :: Rep Location x -> Location #

NFData Location Source # 
Instance details

Defined in ProSource.Location

Methods

rnf :: Location -> () #

Hashable Location Source # 
Instance details

Defined in ProSource.Location

Methods

hashWithSalt :: Int -> Location -> Int #

hash :: Location -> Int #

Pretty Location Source # 
Instance details

Defined in ProSource.Location

Methods

pretty :: Location -> Doc ann #

prettyList :: [Location] -> Doc ann #

HasLocation Location Source # 
Instance details

Defined in ProSource.HasLocation

type Rep Location Source # 
Instance details

Defined in ProSource.Location

type Rep Location = D1 ('MetaData "Location" "ProSource.Location" "pro-source-0.1.0.0-Aka5hIIzvNFHIHVEFICznz" 'False) (C1 ('MetaCons "Location" 'PrefixI 'True) ((S1 ('MetaSel ('Just "locationSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Source) :*: S1 ('MetaSel ('Just "locationOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Offset)) :*: (S1 ('MetaSel ('Just "locationLine") 'NoSourceUnpackedness 'SourceLazy 'DecidedLazy) (Rec0 Line) :*: S1 ('MetaSel ('Just "locationColumn") 'NoSourceUnpackedness 'SourceLazy 'DecidedLazy) (Rec0 Column))))