Copyright | (c) 2013-2016 Galois, Inc. |
---|---|
License | BSD3 |
Maintainer | cryptol@galois.com |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
- data Located a = Located {}
- data Position = Position {}
- data Range = Range {}
- emptyRange :: Range
- start :: Position
- move :: Position -> Char -> Position
- moves :: Position -> Text -> Position
- rComb :: Range -> Range -> Range
- rCombs :: [Range] -> Range
- class HasLoc t where
- class HasLoc t => AddLoc t where
- at :: (HasLoc l, AddLoc t) => l -> t -> t
Documentation
Functor Located Source | |
Eq a => Eq (Located a) Source | |
Show a => Show (Located a) Source | |
Generic (Located a) Source | |
NFData a => NFData (Located a) Source | |
PPName a => PPName (Located a) Source | |
PP a => PP (Located a) Source | |
AddLoc (Located a) Source | |
HasLoc (Located a) Source | |
NoPos (Located t) Source | |
type Rep (Located a) Source |
An empty range.
Caution: using this on the LHS of a use of rComb will cause the empty source to propegate.
HasLoc Range Source | |
HasLoc a => HasLoc [a] Source | |
HasLoc (Located a) Source | |
HasLoc (Prop name) Source | |
HasLoc (Type name) Source | |
HasLoc (TParam name) Source | |
HasLoc (Schema name) Source | |
HasLoc a => HasLoc (Named a) Source | |
HasLoc (Pattern name) Source | |
HasLoc (Match name) Source | |
HasLoc (Expr name) Source | |
HasLoc a => HasLoc (TopLevel a) Source | |
HasLoc (Newtype name) Source | |
HasLoc (Bind name) Source | |
HasLoc (Decl name) Source | |
HasLoc (TopDecl name) Source | |
HasLoc (Module name) Source | |
(HasLoc a, HasLoc b) => HasLoc (a, b) Source |