Safe Haskell | None |
---|---|
Language | Haskell2010 |
Something that can parse user input
Documentation
class Typeable a => Parser (a :: Type) r where Source #
type ParserResult a Source #
type ParserResult a = a Source #
parse :: Sem (ParserEffs r) (ParserResult a) Source #
Instances
data Named (s :: Symbol) a Source #
Instances
(KnownSymbol s, Parser a r) => Parser (Named s a) r Source # | |
Defined in Calamity.Commands.Parser type ParserResult (Named s a) Source # | |
type ParserResult (Named s a) Source # | |
Defined in Calamity.Commands.Parser |
data KleeneConcat a Source #
Instances
(Monoid (ParserResult a), Parser a r) => Parser (KleeneConcat a) r Source # | |
Defined in Calamity.Commands.Parser type ParserResult (KleeneConcat a) Source # parse :: Sem (ParserEffs r) (ParserResult (KleeneConcat a)) Source # | |
Parser (KleeneConcat Text) r Source # | |
Defined in Calamity.Commands.Parser type ParserResult (KleeneConcat Text) Source # parse :: Sem (ParserEffs r) (ParserResult (KleeneConcat Text)) Source # | |
type ParserResult (KleeneConcat a) Source # | |
Defined in Calamity.Commands.Parser | |
type ParserResult (KleeneConcat Text) Source # | |
Defined in Calamity.Commands.Parser |
data ParserState Source #
Instances
Show ParserState Source # | |
Defined in Calamity.Commands.Parser showsPrec :: Int -> ParserState -> ShowS # show :: ParserState -> String # showList :: [ParserState] -> ShowS # | |
Generic ParserState Source # | |
Defined in Calamity.Commands.Parser type Rep ParserState :: Type -> Type # from :: ParserState -> Rep ParserState x # to :: Rep ParserState x -> ParserState # | |
type Rep ParserState Source # | |
Defined in Calamity.Commands.Parser type Rep ParserState = D1 ('MetaData "ParserState" "Calamity.Commands.Parser" "calamity-0.1.9.1-inplace" 'False) (C1 ('MetaCons "ParserState" 'PrefixI 'True) (S1 ('MetaSel ('Just "off") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "msg") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
data SpannedError Source #
Instances
Eq SpannedError Source # | |
Defined in Calamity.Commands.Parser (==) :: SpannedError -> SpannedError -> Bool # (/=) :: SpannedError -> SpannedError -> Bool # | |
Ord SpannedError Source # | |
Defined in Calamity.Commands.Parser compare :: SpannedError -> SpannedError -> Ordering # (<) :: SpannedError -> SpannedError -> Bool # (<=) :: SpannedError -> SpannedError -> Bool # (>) :: SpannedError -> SpannedError -> Bool # (>=) :: SpannedError -> SpannedError -> Bool # max :: SpannedError -> SpannedError -> SpannedError # min :: SpannedError -> SpannedError -> SpannedError # | |
Show SpannedError Source # | |
Defined in Calamity.Commands.Parser showsPrec :: Int -> SpannedError -> ShowS # show :: SpannedError -> String # showList :: [SpannedError] -> ShowS # | |
ShowErrorComponent SpannedError Source # | |
Defined in Calamity.Commands.Parser |