Agda User Manual v2.5.2define an appropriate data type and then bind that type to the natural number concept using a BUILTIN pragma. Some built-in types support primitive functions that have no corresponding Agda definition define your own versions of the built-in types and bind them using BUILTIN pragmas, it is recommended to use the definitions in the Agda.Builtin modules. These modules are installed when you install Agda and natural numbers are defined in Agda.Builtin.Nat. The standard library and the agda-prelude reexport the definitions from these modules. ## The unit type module Agda.Builtin.Unit The unit type is bound to0 码力 | 107 页 | 510.49 KB | 2 年前3
Agda User Manual v2.6.3hello-world.agda) module hello-world where open import Agda.Builtin.IO using (IO) open import Agda.Builtin.Unit using (T) open import Agda.Builtin.String using (String) postulate putStrLn : String → IO T several declarations: 1. Imports of the $ \dot{I}0 $ , $ \tau $ and String types from the Agda Builtin library. 2. A postulate of the function type putStrLn. 3. Two pragmas that tell Agda how to compile you can see from this example, by default Agda includes only minimal library support through the Builtin modules. The Agda Standard Library provides bindings for most commonly used Haskell functions, including0 码力 | 288 页 | 1.24 MB | 2 年前3
Agda User Manual v2.6.4.1hello-world.agda) module hello-world where open import Agda.Builtin.IO using (IO) open import Agda.Builtin.Unit using (T) open import Agda.Builtin.String using (String) postulate putStrLn : String → IO T self-contained and has several declarations: 1. Imports of the IO, T and String types from the Agda Builtin library. 2. A postulate of the function type putStrLn. 3. Two pragmas that tell Agda how to compile you can see from this example, by default Agda includes only minimal library support through the Builtin modules. The Agda Standard Library provides bindings for most commonly used Haskell functions, including0 码力 | 311 页 | 1.38 MB | 2 年前3
Agda User Manual v2.6.4.3hello-world.agda) module hello-world where open import Agda.Builtin.IO using (IO) open import Agda.Builtin.Unit using (T) open import Agda.Builtin.String using (String) postulate putStrLn : String → IO T self-contained and has several declarations: 1. Imports of the IO, T and String types from the Agda Builtin library. 2. A postulate of the function type putStrLn. 3. Two pragmas that tell Agda how to compile you can see from this example, by default Agda includes only minimal library support through the Builtin modules. The Agda Standard Library provides bindings for most commonly used Haskell functions, including0 码力 | 311 页 | 1.38 MB | 2 年前3
Agda User Manual v2.6.4.2hello-world.agda) module hello-world where open import Agda.Builtin.IO using (IO) open import Agda.Builtin.Unit using (T) open import Agda.Builtin.String using (String) postulate putStrLn : String → IO T self-contained and has several declarations: 1. Imports of the IO, T and String types from the Agda Builtin library. 2. A postulate of the function type putStrLn. 3. Two pragmas that tell Agda how to compile you can see from this example, by default Agda includes only minimal library support through the Builtin modules. The Agda Standard Library provides bindings for most commonly used Haskell functions, including0 码力 | 311 页 | 1.38 MB | 2 年前3
Agda User Manual v2.6.3hello-world.agda) module hello-world where open import Agda.Builtin.IO using (IO) open import Agda.Builtin.Unit using (T) open import Agda.Builtin.String using (String) postulate putStrLn : String → IO T and has several declarations: 1. Imports of the $ \dot{I}0 $ , T and String types from the Agda Builtin library. 2. A postulate of the function type putStrLn. 3. Two pragmas that tell Agda how to compile you can see from this example, by default Agda includes only minimal library support through the Builtin modules. The Agda Standard Library. [https://github.com/agda/agda-stdlib] provides bindings for0 码力 | 379 页 | 354.83 KB | 2 年前3
Agda User Manual v2.6.4hello-world.agda) module hello-world where open import Agda.Builtin.IO using (IO) open import Agda.Builtin.Unit using (T) open import Agda.Builtin.String using (String) postulate putStrLn : String → IO T self-contained and has several declarations: 1. Imports of the IO, T and String types from the Agda Builtin library. 2. A postulate of the function type putStrLn. 3. Two pragmas that tell Agda how to compile you can see from this example, by default Agda includes only minimal library support through the Builtin modules. The Agda Standard Library provides bindings for most commonly used Haskell functions, including0 码力 | 313 页 | 1.38 MB | 2 年前3
Agda User Manual v2.6.1.1Synonyms - Overloading - Refolding - Positivity Checking - The NO POSITIVITY CHECK pragma - POLARITY pragmas - Postulates • Postulated built-ins • Pragmas • Index of pragmas modules • Eta-expansion • Recursive records • Instance fields • Reflection • Builtin types • Metaprogramming • Rewriting • Rewrite rules by example • General shape define an appropriate data type and then bind that type to the natural number concept using a BUILTIN pragma. Some built-in types support primitive functions that have no corresponding Agda definition0 码力 | 297 页 | 375.42 KB | 2 年前3
Agda User Manual v2.6.1Synonyms - Overloading - Refolding - Positivity Checking - The NO POSITIVITY CHECK pragma - POLARITY pragmas - Postulates • Postulated built-ins • Pragmas • Index of pragmas modules • Eta-expansion • Recursive records • Instance fields • Reflection • Builtin types • Metaprogramming • Rewriting • Rewrite rules by example • General shape define an appropriate data type and then bind that type to the natural number concept using a BUILTIN pragma. Some built-in types support primitive functions that have no corresponding Agda definition0 码力 | 297 页 | 375.42 KB | 2 年前3
Agda User Manual v2.6.2.2hello-world.agda) module hello-world where open import Agda.Builtin.IO using (IO) open import Agda.Builtin.Unit using (T) open import Agda.Builtin.String using (String) postulate putStrLn : String → IO T and has several declarations: 1. Imports of the $ \dot{I}0 $ , T and String types from the Agda Builtin library. 2. A postulate of the function type putStrLn. 3. Two pragmas that tell Agda how to compile you can see from this example, by default Agda includes only minimal library support through the Builtin modules. The Agda Standard Library. [https://github.com/agda/agda-stdlib] provides bindings for0 码力 | 354 页 | 433.60 KB | 2 年前3
共 888 条
- 1
- 2
- 3
- 4
- 5
- 6
- 89













