Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
runAlexSt :: ByteString -> Alex a -> Either String (AlexUserState, a) Source #
withAlexSt :: ByteString -> AlexUserState -> Alex a -> Either String (AlexUserState, a) Source #
lexDickinson :: ByteString -> Either String [Token AlexPosn] Source #
scdInitState :: [ScdState] Source #
Instances
Data AlexPosn Source # | |
Defined in Language.Dickinson.Lexer gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AlexPosn -> c AlexPosn # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AlexPosn # toConstr :: AlexPosn -> Constr # dataTypeOf :: AlexPosn -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AlexPosn) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AlexPosn) # gmapT :: (forall b. Data b => b -> b) -> AlexPosn -> AlexPosn # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AlexPosn -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AlexPosn -> r # gmapQ :: (forall d. Data d => d -> u) -> AlexPosn -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> AlexPosn -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> AlexPosn -> m AlexPosn # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AlexPosn -> m AlexPosn # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AlexPosn -> m AlexPosn # | |
Generic AlexPosn Source # | |
Show AlexPosn Source # | |
Binary AlexPosn Source # | |
NFData AlexPosn Source # | |
Defined in Language.Dickinson.Lexer | |
Eq AlexPosn Source # | |
Pretty AlexPosn Source # | |
Defined in Language.Dickinson.Lexer | |
type Rep AlexPosn Source # | |
Defined in Language.Dickinson.Lexer type Rep AlexPosn = D1 ('MetaData "AlexPosn" "Language.Dickinson.Lexer" "language-dickinson-1.4.3.0-u4JKvBug5L7Xak6MfKGcR-dickinson" 'False) (C1 ('MetaCons "AlexPn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)))) |
Instances
Instances
LParen | |
RParen | |
VBar | |
LSqBracket | |
RSqBracket | |
RBracket | |
BeginInterp | |
EndInterp | |
StrBegin | |
StrEnd | |
MultiStrBegin | |
MultiStrEnd | |
Arrow | |
DollarSign | |
Comma | |
Underscore | |
Colon | |
DeclBreak | |
Eq |
Instances
Capitalize | |
AllCaps | |
Titlecase | |
Oulipo | Filter all |
Instances
Data Builtin Source # | |
Defined in Language.Dickinson.Lexer gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Builtin -> c Builtin # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Builtin # toConstr :: Builtin -> Constr # dataTypeOf :: Builtin -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Builtin) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Builtin) # gmapT :: (forall b. Data b => b -> b) -> Builtin -> Builtin # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Builtin -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Builtin -> r # gmapQ :: (forall d. Data d => d -> u) -> Builtin -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Builtin -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Builtin -> m Builtin # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Builtin -> m Builtin # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Builtin -> m Builtin # | |
Generic Builtin Source # | |
Show Builtin Source # | |
Binary Builtin Source # | |
NFData Builtin Source # | |
Defined in Language.Dickinson.Lexer | |
Eq Builtin Source # | |
Pretty Builtin Source # | |
Defined in Language.Dickinson.Lexer | |
type Rep Builtin Source # | |
Defined in Language.Dickinson.Lexer type Rep Builtin = D1 ('MetaData "Builtin" "Language.Dickinson.Lexer" "language-dickinson-1.4.3.0-u4JKvBug5L7Xak6MfKGcR-dickinson" 'False) ((C1 ('MetaCons "Capitalize" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AllCaps" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Titlecase" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Oulipo" 'PrefixI 'False) (U1 :: Type -> Type))) |
class HasLexerState a where Source #
Instances
HasLexerState (EvalSt a) Source # | |
Defined in Language.Dickinson.Eval lexerStateLens :: Lens' (EvalSt a) AlexUserState Source # |