Agda-2.6.3.20230930: A dependently typed functional programming language and proof assistant
Safe HaskellSafe-Inferred
LanguageHaskell2010

Agda.Syntax.Literal

Documentation

data Literal Source #

Constructors

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

Instances

Instances details
Pretty Literal Source # 
Instance details

Defined in Agda.Syntax.Literal

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

Reify Literal Source # 
Instance details

Defined in Agda.Syntax.Translation.InternalToAbstract

Associated Types

type ReifiesTo Literal Source #

ToAbstract Literal Source # 
Instance details

Defined in Agda.Syntax.Translation.ReflectedToAbstract

Associated Types

type 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

Show Literal Source # 
Instance details

Defined in Agda.Syntax.Literal

Methods

showsPrec :: Int -> Literal -> ShowS

show :: Literal -> String

showList :: [Literal] -> ShowS

NFData Literal Source #

Ranges are not forced.

Instance details

Defined in Agda.Syntax.Literal

Methods

rnf :: Literal -> ()

Eq Literal Source # 
Instance details

Defined in Agda.Syntax.Literal

Methods

(==) :: Literal -> Literal -> Bool

(/=) :: Literal -> Literal -> Bool

Ord Literal Source # 
Instance details

Defined in Agda.Syntax.Literal

Methods

compare :: Literal -> Literal -> Ordering

(<) :: Literal -> Literal -> Bool

(<=) :: Literal -> Literal -> Bool

(>) :: Literal -> Literal -> Bool

(>=) :: Literal -> Literal -> Bool

max :: Literal -> Literal -> Literal

min :: Literal -> Literal -> Literal

type ReifiesTo Literal Source # 
Instance details

Defined in Agda.Syntax.Translation.InternalToAbstract

type AbsOfRef Literal Source # 
Instance details

Defined in Agda.Syntax.Translation.ReflectedToAbstract

showText :: Text -> ShowS Source #

showChar' :: Char -> ShowS Source #