Agda-2.6.2.2: A dependently typed functional programming language and proof assistant

Safe Haskell | Safe-Inferred
Language | Haskell2010

Agda.Syntax.Literal

# Documentation

type RLiteral = Ranged Literal Source #

data Literal Source #

Constructors

LitNat !Integer |
LitWord64 !Word64 |
LitFloat !Double |
LitString !Text |
LitChar !Char |
LitQName !QName |
LitMeta AbsolutePath MetaId |

#### Instances

Instances details

NamesIn Literal Source # |
Instance details Defined in Agda.Syntax.Internal.Names Methods namesIn' :: Monoid m => (QName -> m) -> Literal -> m Source #
KillRange Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods killRange :: KillRangeT Literal Source #
Reify Literal Source # |
Instance details Defined in Agda.Syntax.Translation.InternalToAbstract Associated Types type ReifiesTo Literal Source # Methods reify :: MonadReify m => Literal -> m (ReifiesTo Literal) Source # reifyWhen :: MonadReify m => Bool -> Literal -> m (ReifiesTo Literal) Source #
ToAbstract Literal Source # |
Instance details Defined in Agda.Syntax.Translation.ReflectedToAbstract Associated Types type AbsOfRef Literal Source # Methods toAbstract :: MonadReflectedToAbstract m => Literal -> m (AbsOfRef Literal) Source #
PrettyTCM Literal Source # |
Instance details Defined in Agda.TypeChecking.Pretty Methods prettyTCM :: MonadPretty m => Literal -> m Doc Source #
EmbPrj Literal Source # |
Instance details Defined in Agda.TypeChecking.Serialise.Instances.Common Methods icode :: Literal -> S Int32 Source # icod_ :: Literal -> S Int32 Source # value :: Int32 -> R Literal Source #
Unquote Literal Source # |
Instance details Defined in Agda.TypeChecking.Unquote Methods unquote :: Term -> UnquoteM Literal Source #
Pretty Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods pretty :: Literal -> Doc Source # prettyPrec :: Int -> Literal -> Doc Source # prettyList :: [Literal] -> Doc Source #
Data Literal Source # |

Instance details

Defined in Agda.Syntax.Literal

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Literal -> c Literal Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Literal Source #

toConstr :: Literal -> Constr Source #

dataTypeOf :: Literal -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Literal) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Literal) Source #

gmapT :: (forall b. Data b => b -> b) -> Literal -> Literal Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Literal -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Literal -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Literal -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Literal -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Literal -> m Literal Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Literal -> m Literal Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Literal -> m Literal Source #

Show Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods showsPrec :: Int -> Literal -> ShowS Source # show :: Literal -> String Source # showList :: [Literal] -> ShowS Source #
NFData Literal Source # | Ranges are not forced.
Instance details Defined in Agda.Syntax.Literal Methods rnf :: Literal -> () Source #
Eq Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods (==) :: Literal -> Literal -> Bool Source # (/=) :: Literal -> Literal -> Bool Source #
Ord Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods compare :: Literal -> Literal -> Ordering Source # (<) :: Literal -> Literal -> Bool Source # (<=) :: Literal -> Literal -> Bool Source # (>) :: Literal -> Literal -> Bool Source # (>=) :: Literal -> Literal -> Bool Source # max :: Literal -> Literal -> Literal Source # min :: Literal -> Literal -> Literal Source #
type ReifiesTo Literal Source # |
Instance details Defined in Agda.Syntax.Translation.InternalToAbstract type ReifiesTo Literal = Expr
type AbsOfRef Literal Source # |
Instance details Defined in Agda.Syntax.Translation.ReflectedToAbstract type AbsOfRef Literal = Expr

showText :: Text -> ShowS Source #

showChar' :: Char -> ShowS Source #