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

Safe Haskell | None
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 !(TopLevelModuleName' Range) !MetaId |

#### Instances

Instances details

Pretty Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods pretty :: Literal -> Doc Source # prettyPrec :: Int -> Literal -> Doc Source # prettyList :: [Literal] -> Doc Source #
NamesIn Literal Source # |
Instance details Defined in Agda.Syntax.Internal.Names Methods namesAndMetasIn' :: Monoid m => (Either QName MetaId -> 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 |
Instance details Defined in Agda.Syntax.Translation.InternalToAbstract type ReifiesTo Literal = Expr

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 |
Instance details Defined in Agda.Syntax.Translation.ReflectedToAbstract type AbsOfRef Literal = Expr

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 Word32 Source # icod_ :: Literal -> S Word32 Source # value :: Word32 -> R Literal Source #
Unquote Literal Source # |
Instance details Defined in Agda.TypeChecking.Unquote Methods unquote :: Term -> UnquoteM Literal Source #
NFData Literal Source # | Ranges are not forced.
Instance details Defined in Agda.Syntax.Literal Methods rnf :: 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 #
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 #