glualint-1.28.0: Attempts to fix your syntax erroring Lua files.
Safe HaskellSafe-Inferred
LanguageHaskell2010

GLua.Position

Description

Reimplements the LineColPos from `uu-parsinglib`, and adds some more functions related to positioning.

Synopsis

Documentation

data Region Source #

Constructors

Region 

Instances

Instances details
FromJSON Region Source # 
Instance details

Defined in GLua.Position

ToJSON Region Source # 
Instance details

Defined in GLua.Position

Generic Region Source # 
Instance details

Defined in GLua.Position

Associated Types

type Rep Region :: Type -> Type #

Methods

from :: Region -> Rep Region x #

to :: Rep Region x -> Region #

Show Region Source # 
Instance details

Defined in GLua.Position

Eq Region Source # 
Instance details

Defined in GLua.Position

Methods

(==) :: Region -> Region -> Bool #

(/=) :: Region -> Region -> Bool #

Ord Region Source # 
Instance details

Defined in GLua.Position

type Rep Region Source # 
Instance details

Defined in GLua.Position

type Rep Region = D1 ('MetaData "Region" "GLua.Position" "glualint-1.28.0-HSfoAco7mZL5s5twFJVjN4" 'False) (C1 ('MetaCons "Region" 'PrefixI 'True) (S1 ('MetaSel ('Just "rgStart") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LineColPos) :*: S1 ('MetaSel ('Just "rgEnd") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LineColPos)))

emptyRg :: Region Source #

An empty region from position 0 to position 0.

rgOr :: Region -> Region -> Region Source #

Hack: Chooses left region if it is not emptyRg, and the right region if it is.

before :: Region -> Region -> Bool Source #

Whether the first region ends strictly before the second region starts

beforeOrOnLine :: Region -> Region -> Bool Source #

Whether the first region ends before or on the same line as the second region starts

beforeEnd :: Region -> Region -> Bool Source #

Whether the first region ends before the second region ends

beforeEndLine :: Region -> Region -> Bool Source #

Whether the first region ends before or on the same line as the END of the second region

upto :: Region -> Region -> Region Source #

Returns a region that starts at the start of the first region and ends BEFORE the start of the second region