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

Safe Haskell | None
Language | Haskell2010

Agda.Syntax.Literal

Synopsis

- data Literal
  - = LitNat Range !Integer
  - | LitFloat Range !Double
  - | LitString Range String
  - | LitChar Range !Char
  - | LitQName Range QName
  - | LitMeta Range AbsolutePath MetaId
- showString' :: String -> ShowS
- showChar' :: Char -> ShowS
- compareFloat :: Double -> Double -> Ordering

# Documentation

data Literal #

Constructors

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

Instances

Eq Literal # |
Methods (==) :: Literal -> Literal -> Bool # (/=) :: Literal -> Literal -> Bool #
Ord 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 #
Show Literal # |
Methods showsPrec :: Int -> Literal -> ShowS # show :: Literal -> String # showList :: [Literal] -> ShowS #
NFData Literal # | Ranges are not forced.
Methods rnf :: Literal -> () #
Pretty Literal # |
Methods pretty :: Literal -> Doc # prettyPrec :: Int -> Literal -> Doc #
KillRange Literal # |
Methods killRange :: KillRangeT Literal #
SetRange Literal # |
Methods setRange :: Range -> Literal -> Literal #
HasRange Literal # |
Methods getRange :: Literal -> Range #
NamesIn Literal # |
Methods namesIn :: Literal -> Set QName #
PrettyTCM Literal # |
Methods prettyTCM :: Literal -> TCM Doc #
Unquote Literal # |
Methods unquote :: Term -> UnquoteM Literal #
ToAbstract Literal Expr # |
Methods toAbstract :: Literal -> WithNames Expr #
Reify Literal Expr # |
Methods reify :: Literal -> TCM Expr # reifyWhen :: Bool -> Literal -> TCM Expr #

showString' :: String -> ShowS #

showChar' :: Char -> ShowS #

compareFloat :: Double -> Double -> Ordering #