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

Safe Haskell | None
Language | Haskell2010

Agda.Syntax.Literal

# Documentation

data Literal Source #

Constructors

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

Instances

Eq Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods (==) :: Literal -> Literal -> Bool Source # (/=) :: Literal -> Literal -> Bool 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 :: (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 #

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 #
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 #
Pretty Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods pretty :: Literal -> Doc Source # prettyPrec :: Int -> Literal -> Doc Source # prettyList :: [Literal] -> Doc Source #
KillRange Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods killRange :: KillRangeT Literal Source #
SetRange Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods setRange :: Range -> Literal -> Literal Source #
HasRange Literal Source # |
Instance details Defined in Agda.Syntax.Literal Methods getRange :: Literal -> Range 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 #
PrettyTCM Literal Source # |
Instance details Defined in Agda.TypeChecking.Pretty Methods prettyTCM :: Literal -> TCM Doc Source #
NamesIn Literal Source # |
Instance details Defined in Agda.Syntax.Internal.Names Methods namesIn :: Literal -> Set QName Source #
Unquote Literal Source # |
Instance details Defined in Agda.TypeChecking.Unquote Methods unquote :: Term -> UnquoteM Literal Source #
ToAbstract Literal Expr Source # |
Instance details Defined in Agda.Syntax.Translation.ReflectedToAbstract Methods toAbstract :: Literal -> WithNames Expr Source #
Reify Literal Expr Source # |
Instance details Defined in Agda.Syntax.Translation.InternalToAbstract Methods reify :: Literal -> TCM Expr Source # reifyWhen :: Bool -> Literal -> TCM Expr Source #

showString' :: String -> ShowS Source #

showChar' :: Char -> ShowS Source #

compareFloat :: Double -> Double -> Ordering Source #