fast-tags-2.0.0: Fast incremental vi and emacs tags.

Copyright(c) Sergey Vinokurov 2019
Safe HaskellNone
LanguageHaskell98

FastTags.LexerTypes

Description

Auxiliary types for lexer.

Synopsis

Documentation

data Context Source #

Whether we're currently in Haskell context or within Template Haskell quasiquoter and should discard as much as possible.

Constructors

CtxHaskell 
CtxQuasiquoter 
Instances
Eq Context Source # 
Instance details

Defined in FastTags.LexerTypes

Methods

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

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

Ord Context Source # 
Instance details

Defined in FastTags.LexerTypes

Show Context Source # 
Instance details

Defined in FastTags.LexerTypes

newtype AlexCode Source #

Abstract wrapper around alex automata states.

Constructors

AlexCode 

Fields

Instances
Enum AlexCode Source # 
Instance details

Defined in FastTags.LexerTypes

Eq AlexCode Source # 
Instance details

Defined in FastTags.LexerTypes

Integral AlexCode Source # 
Instance details

Defined in FastTags.LexerTypes

Num AlexCode Source # 
Instance details

Defined in FastTags.LexerTypes

Ord AlexCode Source # 
Instance details

Defined in FastTags.LexerTypes

Real AlexCode Source # 
Instance details

Defined in FastTags.LexerTypes

Show AlexCode Source # 
Instance details

Defined in FastTags.LexerTypes

NFData AlexCode Source # 
Instance details

Defined in FastTags.LexerTypes

Methods

rnf :: AlexCode -> () #

data LitStyle Source #

Literate style we're currently in.

Constructors

Bird 
Latex 

data LitMode a Source #

Literate mode of whole file. Either LitVanilla all the time, which means it's non-literate file or LitOutside when looking at literate comments and LitInside mode when lexing Haskell source with specific literate mode.

Constructors

LitInside !a 
LitOutside 
LitVanilla 
Instances
Functor LitMode Source # 
Instance details

Defined in FastTags.LexerTypes

Methods

fmap :: (a -> b) -> LitMode a -> LitMode b #

(<$) :: a -> LitMode b -> LitMode a #

Eq a => Eq (LitMode a) Source # 
Instance details

Defined in FastTags.LexerTypes

Methods

(==) :: LitMode a -> LitMode a -> Bool #

(/=) :: LitMode a -> LitMode a -> Bool #

Ord a => Ord (LitMode a) Source # 
Instance details

Defined in FastTags.LexerTypes

Methods

compare :: LitMode a -> LitMode a -> Ordering #

(<) :: LitMode a -> LitMode a -> Bool #

(<=) :: LitMode a -> LitMode a -> Bool #

(>) :: LitMode a -> LitMode a -> Bool #

(>=) :: LitMode a -> LitMode a -> Bool #

max :: LitMode a -> LitMode a -> LitMode a #

min :: LitMode a -> LitMode a -> LitMode a #

Show a => Show (LitMode a) Source # 
Instance details

Defined in FastTags.LexerTypes

Methods

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

show :: LitMode a -> String #

showList :: [LitMode a] -> ShowS #