Agda-2.6.20240714: A dependently typed functional programming language and proof assistant
Safe HaskellNone
LanguageHaskell2010

Agda.Syntax.Literal

Documentation

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

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 
Instance details

Defined in Agda.Syntax.Translation.InternalToAbstract

ToAbstract Literal Source # 
Instance details

Defined in Agda.Syntax.Translation.ReflectedToAbstract

Associated Types

type AbsOfRef Literal 
Instance details

Defined in Agda.Syntax.Translation.ReflectedToAbstract

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

NFData Literal Source #

Ranges are not forced.

Instance details

Defined in Agda.Syntax.Literal

Methods

rnf :: Literal -> ()

Show Literal Source # 
Instance details

Defined in Agda.Syntax.Literal

Methods

showsPrec :: Int -> Literal -> ShowS

show :: Literal -> String

showList :: [Literal] -> ShowS

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 #