cryptol-2.2.1: Cryptol: The Language of Cryptography

Copyright(c) 2013-2015 Galois, Inc.
LicenseBSD3
Maintainercryptol@galois.com
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Cryptol.Parser.Position

Description

 

Synopsis

Documentation

data Located a Source

Constructors

Located 

Fields

srcRange :: !Range
 
thing :: a
 

Instances

Functor Located 
Eq a => Eq (Located a) 
Show a => Show (Located a) 
PP a => PP (Located a) 
AddLoc (Located a) 
HasLoc (Located a) 
NoPos (Located t) 
Rename a => Rename (Located a) 

data Position Source

Constructors

Position 

Fields

line :: !Int
 
col :: !Int
 

data Range Source

Constructors

Range 

Fields

from :: !Position
 
to :: !Position
 
source :: FilePath
 

emptyRange :: Range Source

An empty range.

Caution: using this on the LHS of a use of rComb will cause the empty source to propegate.

at :: (HasLoc l, AddLoc t) => l -> t -> t Source