March 2017
Intermediate to advanced
480 pages
12h 52m
English
The Idris read-eval-print loop (REPL) provides several commands. The most common commands, listed below, are introduced over the course of this book.
|
Command |
Arguments |
Description |
|---|---|---|
| <expression> | None | Displays the result of evaluating the expression. The variable it contains the result of the most recent evaluation. |
| :t | <expression> | Displays the type of the expression. |
| :total | <name> | Displays whether the function with the given name is total. |
| :doc | <name> | Displays documentation for name. |
| :let | <definition> | Adds a new definition. |
| :exec | <expression> | Compiles and executes the expression. If none is given, compiles and executes main. |
| :c | <output file> | Compiles to an executable with the entry point main. |
| :r | None ... |
Read now
Unlock full access