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

Safe Haskell | None
Language | Haskell2010

Agda.Compiler.MAlonzo.Misc

Contents

- Types coming from Agda are named T\<number\>.
- Other definitions coming from Agda are named "d<number>".
- Names coming from Haskell must always be used qualified.

Synopsis

- curHsMod :: TCM ModuleName
- ihname :: String -> Nat -> Name
- unqhname :: String -> QName -> Name
- tlmodOf :: ModuleName -> TCM ModuleName
- xqual :: QName -> Name -> TCM QName
- xhqn :: String -> QName -> TCM QName
- hsName :: String -> QName
- conhqn :: QName -> TCM QName
- bltQual :: String -> String -> TCM QName
- dname :: QName -> Name
- duname :: QName -> Name
- hsPrimOp :: String -> QOp
- hsPrimOpApp :: String -> Exp -> Exp -> Exp
- hsInt :: Integer -> Exp
- hsTypedInt :: Integral a => a -> Exp
- hsLet :: Name -> Exp -> Exp -> Exp
- hsVarUQ :: Name -> Exp
- hsAppView :: Exp -> [Exp]
- hsOpToExp :: QOp -> Exp
- hsLambda :: [Pat] -> Exp -> Exp
- hsMapAlt :: (Exp -> Exp) -> Alt -> Alt
- hsMapRHS :: (Exp -> Exp) -> Rhs -> Rhs
- mazstr :: String
- mazName :: Name
- mazMod' :: String -> ModuleName
- mazMod :: ModuleName -> ModuleName
- mazerror :: String -> a
- mazCoerceName :: String
- mazErasedName :: String
- mazCoerce :: Exp
- mazIncompleteMatch :: Exp
- rtmIncompleteMatch :: QName -> Exp
- mazUnreachableError :: Exp
- rtmUnreachableError :: Exp
- mazRTE :: ModuleName
- rtmQual :: String -> QName
- rtmVar :: String -> Exp
- rtmError :: String -> Exp
- unsafeCoerceMod :: ModuleName
- fakeD :: Name -> String -> Decl
- fakeDS :: String -> String -> Decl
- fakeDQ :: QName -> String -> Decl
- fakeType :: String -> Type
- fakeExp :: String -> Exp
- fakeDecl :: String -> Decl
- emptyBinds :: Maybe Binds
- isModChar :: Char -> Bool

# Documentation

curHsMod :: TCM ModuleName #

# Types coming from Agda are named T\<number\>.

# Other definitions coming from Agda are named "d<number>".

# Names coming from Haskell must always be used qualified.

ihname :: String -> Nat -> Name #

unqhname :: String -> QName -> Name #

tlmodOf :: ModuleName -> TCM ModuleName #

xqual :: QName -> Name -> TCM QName #

xhqn :: String -> QName -> TCM QName #

hsName :: String -> QName #

conhqn :: QName -> TCM QName #

bltQual :: String -> String -> TCM QName #

dname :: QName -> Name #

duname :: QName -> Name #

Name for definition stripped of unused arguments

hsPrimOp :: String -> QOp #

hsPrimOpApp :: String -> Exp -> Exp -> Exp #

hsInt :: Integer -> Exp #

hsTypedInt :: Integral a => a -> Exp #

hsLet :: Name -> Exp -> Exp -> Exp #

hsVarUQ :: Name -> Exp #

hsAppView :: Exp -> [Exp] #

hsOpToExp :: QOp -> Exp #

hsLambda :: [Pat] -> Exp -> Exp #

hsMapAlt :: (Exp -> Exp) -> Alt -> Alt #

hsMapRHS :: (Exp -> Exp) -> Rhs -> Rhs #

mazstr :: String #

mazName :: Name #

mazMod' :: String -> ModuleName #

mazMod :: ModuleName -> ModuleName #

mazerror :: String -> a #

mazCoerceName :: String #

mazErasedName :: String #

mazCoerce :: Exp #

mazIncompleteMatch :: Exp #

rtmIncompleteMatch :: QName -> Exp #

mazUnreachableError :: Exp #

rtmUnreachableError :: Exp #

mazRTE :: ModuleName #

rtmQual :: String -> QName #

rtmVar :: String -> Exp #

rtmError :: String -> Exp #

unsafeCoerceMod :: ModuleName #

fakeD :: Name -> String -> Decl #

fakeDS :: String -> String -> Decl #

fakeDQ :: QName -> String -> Decl #

fakeType :: String -> Type #

fakeExp :: String -> Exp #

fakeDecl :: String -> Decl #

emptyBinds :: Maybe Binds #

isModChar :: Char -> Bool #

Can the character be used in a Haskell module name part (`conid`)? This function is more restrictive than what the Haskell report allows.