Agda User Manual v2.5.2checking computations (see below) can fail with an error, which is a list of ErrorParts. This allows metaprograms to generate nice errors without having to implement pretty printing for reflected terms. -- Error AGDAERRORPARTTERM termErr #-} {-# BUILTIN AGDAERRORPARTNAME nameErr #-} Type checking computations Metaprograms, i.e. programs that create other programs, run in a built-in type checking monad TC: postulate metaprogram (TC computation). To run a metaprogram in a term position you use a macro. To run metaprograms to create top-level definitions you can use the unquoteDecl and unquoteDef primitives (see Unquoting0 码力 | 151 页 | 152.49 KB | 1 年前3
Agda User Manual v2.5.3checking computations (see below) can fail with an error, which is a list of ErrorParts. This allows metaprograms to generate nice errors without having to implement pretty printing for reflected terms. -- Error AGDAERRORPARTTERM termErr #-} {-# BUILTIN AGDAERRORPARTNAME nameErr #-} Type checking computations Metaprograms, i.e. programs that create other programs, run in a built-in type checking monad TC: postulate metaprogram (TC computation). To run a metaprogram in a term position you use a macro. To run metaprograms to create top-level definitions you can use the unquoteDecl and unquoteDef primitives (see Unquoting0 码力 | 185 页 | 185.00 KB | 1 年前3
Agda User Manual v2.5.4.2checking computations (see below) can fail with an error, which is a list of ErrorParts. This allows metaprograms to generate nice errors without having to implement pretty printing for reflected terms. -- Error AGDAERRORPARTTERM termErr #-} {-# BUILTIN AGDAERRORPARTNAME nameErr #-} Type checking computations Metaprograms, i.e. programs that create other programs, run in a built-in type checking monad TC: postulate metaprogram (TC computation). To run a metaprogram in a term position you use a macro. To run metaprograms to create top-level definitions you can use the unquoteDecl and unquoteDef primitives (see Unquoting0 码力 | 216 页 | 207.61 KB | 1 年前3
Agda User Manual v2.5.4.1checking computations (see below) can fail with an error, which is a list of ErrorParts. This allows metaprograms to generate nice errors without having to implement pretty printing for reflected terms. -- Error AGDAERRORPARTTERM termErr #-} {-# BUILTIN AGDAERRORPARTNAME nameErr #-} Type checking computations Metaprograms, i.e. programs that create other programs, run in a built-in type checking monad TC: postulate metaprogram (TC computation). To run a metaprogram in a term position you use a macro. To run metaprograms to create top-level definitions you can use the unquoteDecl and unquoteDef primitives (see Unquoting0 码力 | 216 页 | 207.64 KB | 1 年前3
Agda User Manual v2.5.4checking computations (see below) can fail with an error, which is a list of ErrorParts. This allows metaprograms to generate nice errors without having to implement pretty printing for reflected terms. -- Error AGDAERRORPARTTERM termErr #-} {-# BUILTIN AGDAERRORPARTNAME nameErr #-} Type checking computations Metaprograms, i.e. programs that create other programs, run in a built-in type checking monad TC: postulate metaprogram (TC computation). To run a metaprogram in a term position you use a macro. To run metaprograms to create top-level definitions you can use the unquoteDecl and unquoteDef primitives (see Unquoting0 码力 | 216 页 | 207.63 KB | 1 年前3
Agda User Manual v2.5.2AGDAERRORPARTTERM termErr #-} {-# BUILTIN AGDAERRORPARTNAME nameErr #-} Type checking computations Metaprograms, i.e. programs that create other programs, run in a built-in type checking monad TC: postulate metaprogram (TC computation). To run a metaprogram in a term position you use a macro. To run metaprograms to create top-level definitions you can use the unquoteDecl and unquoteDef primitives (see Unquoting normal function: thm : ¬ P NP thm = by-magic Unquoting Declarations While macros let you write metaprograms to create terms, it is also useful to be able to create top-level definitions. You can do this0 码力 | 107 页 | 510.49 KB | 1 年前3
Agda User Manual v2.6.0.1checking computations (see below) can fail with an error, which is a list of ErrorParts. This allows metaprograms to generate nice errors without having to implement pretty printing for reflected terms. -- Error AGDAERRORPARTTERM termErr #-} {-# BUILTIN AGDAERRORPARTNAME nameErr #-} Type checking computations Metaprograms, i.e. programs that create other programs, run in a built-in type checking monad TC: postulate metaprogram (TC computation). To run a metaprogram in a term position you use a macro. To run metaprograms to create top-level definitions you can use the unquoteDecl and unquoteDef primitives (see Unquoting0 码力 | 256 页 | 247.15 KB | 1 年前3
Agda User Manual v2.6.0checking computations (see below) can fail with an error, which is a list of ErrorParts. This allows metaprograms to generate nice errors without having to implement pretty printing for reflected terms. -- Error AGDAERRORPARTTERM termErr #-} {-# BUILTIN AGDAERRORPARTNAME nameErr #-} Type checking computations Metaprograms, i.e. programs that create other programs, run in a built-in type checking monad TC: postulate metaprogram (TC computation). To run a metaprogram in a term position you use a macro. To run metaprograms to create top-level definitions you can use the unquoteDecl and unquoteDef primitives (see Unquoting0 码力 | 256 页 | 246.87 KB | 1 年前3
Agda User Manual v2.5.3AGDAERRORPARTTERM termErr #-} {-# BUILTIN AGDAERRORPARTNAME nameErr #-} Type checking computations Metaprograms, i.e. programs that create other programs, run in a built-in type checking monad TC: 72 Chapter metaprogram (TC computation). To run a metaprogram in a term position you use a macro. To run metaprograms to create top-level definitions you can use the unquoteDecl and unquoteDef primitives (see Unquoting normal function: thm : ¬ P NP thm = by-magic Unquoting Declarations While macros let you write metaprograms to create terms, it is also useful to be able to create top-level definitions. You can do this0 码力 | 135 页 | 600.40 KB | 1 年前3
Agda User Manual v2.6.1.3checking computations (see below) can fail with an error, which is a list of ErrorParts. This allows metaprograms to generate nice errors without having to implement pretty printing for reflected terms. -- Error AGDAERRORPARTTERM termErr #-} {-# BUILTIN AGDAERRORPARTNAME nameErr #-} Type checking computations Metaprograms, i.e. programs that create other programs, run in a built-in type checking monad TC: postulate metaprogram (TC computation). To run a metaprogram in a term position you use a macro. To run metaprograms to create top-level definitions you can use the unquoteDecl and unquoteDef primitives (see Unquoting0 码力 | 305 页 | 375.80 KB | 1 年前3
共 34 条
- 1
- 2
- 3
- 4













