![]() ![]() The tour of Emacs page on the GNU Emacs site describes how to access the tutorial within your Emacs installation.Īgda ships with the editor support for Emacs built-in, so if you’ve installed Agda, all you have to do to configure Emacs is run: ![]() Make sure that you are able to open, edit, and save text files with your installation. See the GNU Emacs downloads page for instructions. On MacOS, Aquamacs is probably the preferred version of Emacs, but GNU Emacs can also be installed via Homebrew or MacPorts. There are also links to the most recent release on the GNU Emacs downloads page. On UNIX, the version of Emacs in your repository is probably fine as long as it is fairly recent. The recommended editor for Agda is Emacs. ![]() More information about placing the standard libraries is available from the Library Management page of the Agda documentation. Add PLFA/src/plfa.agda-lib to AGDA_DIR/libraries and add plfa to AGDA_DIR/defaults, each on a line of their own. To do so, let PLFA be the path to the root directory for PLFA. If you want to complete the exercises or to import modules from the book, you will also need to provide access to PLFA as an Agda library.In AGDA_DIR, create a plain-text file called defaults containing just the line standard-library.This lets Agda know that an Agda library called standard-library is available. In AGDA_DIR, create a plain-text file called libraries containing AGDA_STDLIB/standard-library.agda-lib, where AGDA_STDLIB is the path to where the Agda standard library is located (e.g., ~/plfa/standard-library/).If the AGDA_DIR directory does not already exist, create it.On Windows, AGDA_DIR usually defaults to %AppData%\agda, where %AppData% usually defaults to C:\Users\USERNAME\AppData\Roaming. On UNIX and macOS, AGDA_DIR defaults to ~/.agda. Both configuration files are located in the directory AGDA_DIR. Otherwise, you will need to edit the appropriate files. This provides access to both the Agda standard library and to PLFA as an Agda library. Mkdir -p ~/.agda cp ~/plfa/data/dotagda/ * ~/.agda For most versions of macOS, you can install these by running the following command: On macOS, you’ll need to install The XCode Command Line Tools. On macOS: Install the XCode Command Line Tools Therefore, it’s important to have the specific versions of Agda and the standard library shown above. Furthermore, Agda is under active development, so if you install the development version from the GitHub, you might find the developers have introduced changes which break the code here. If you are using a package manager, like Homebrew or Debian apt, the version of Agda available there may be out of date. There are several versions of Agda and its standard library online. Agda and the standard library change rapidly, and these changes often break PLFA, so using older or newer versions usually causes problems. PLFA is tested against specific versions of Agda and the standard library, which are shown in the badges above. However, if you wish to interact with the code or complete the exercises, you need several things: You can read PLFA online without installing anything. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |