Agda is a dependently typed functional programming language: It has inductive families, which are similar to Haskell's GADTs, but they can be indexed by values and not just types. To use Agda in editors like Emacs or Atom you need to enable/configure the editor to agda-mode.
Questions tagged [agda-mode]
37 questions
1
vote
1 answer
How to install agda-mode on OSX El Capitan?
I'm trying to install agda-mode on OSX. I followed the official guide (tried several others too) but can't seem to get it working.
When loading Emacs/Aquamacs I get the following error:
Warning (initialization): An error occurred while loading…

is7s
- 3,500
- 1
- 20
- 41
0
votes
1 answer
"command 'agda-mode.input-symbol[BrowseLeft]' not found" error in VSCode everytime I try to browse now with arrow keys
I have no idea what happened. I was doing some Agda work in one window, and I had a C project in another. Restarted VS Code to work on the C project, now every time I try to use arrow keys I get the error message mentioned in the title, and my…

glvcsygrg
- 1
- 1
0
votes
1 answer
How to write a function that returns the bottom type?
I am reading the PLFA book and reached the section Negation, and curious to know if I can implement a function that returns the bottom type:
foo : Set → ⊥
foo a = ?
It seems agda accepts my code, but I cannot find a way to implement the bottom set…

Chien
- 355
- 2
- 11
0
votes
1 answer
Why do we put a 'where' after defining data types in Agda?
Suppose I wish to define Bool as a type, I would write:
data Bool : Type where
I don't quite understand why I must keep 'where' at the end, what purpose does it play in the Syntax? Why was the above preferred over say:
data Bool : Type
Was this…

Reine Abstraktion
- 123
- 6
0
votes
1 answer
"Could not load module `Control.Monad.Trans.Maybe'" while trying to install Agda 2.6.1.2
I'm trying to install Agda 2.6.1.2 by following the instructions in the docs, but when running the command cabal install Agda I'm receiving the following error:
src\full\Agda\Utils\Maybe.hs:13:1: error:
Could not load module…

Fredrik Bakke
- 31
- 7
0
votes
1 answer
Syntax highlighting for Agda-mode 2 in Doom Emacs
I need help getting agda mode to work on my emacs system. Essentially, syntax highlighting only occurs after I save and not in real time like other standard modes. I did the basic tutorial. I run Manjaro on my system so I used pacman to install agda…

Notemaster
- 465
- 1
- 3
- 15
0
votes
0 answers
Emacs does not react when I press C-. (dot/period)
I am learning Agda and when I type C-cC-. there is no reaction in my Emacs. I can type either C-c. or C-cM-. and then I will be told that these bindings are not defined. But when I try to type C-cC-. the mini-buffer only shows C-c and it seems that…

Yu-zh
- 51
- 3