Debian Codegraph @

doc/README/Design/Fixity.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Documentation describing some of the fixity choices
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 -- There is no actual code in here, just design note.
10
11 module README.Design.Fixity where
12
13
14 -- binary relations of all kinds are infix 4
15 -- multiplication-like: infixl 7 _*_
16 -- addition-like infixl 6 _+_
17 -- negation-like infix 8 ¬_
18 -- and-like infixr 7 _∧_
19 -- or-like infixr 6 _∨_
20 -- post-fix inverse infix 8 _⁻¹
21 -- bind infixl 1 _>>=_
22 -- list concat-like infixr 5 _∷_
23 -- ternary reasoning infix 1 _⊢_≈_
24 -- composition infixr 9 _∘_
25 -- application infixr -1 _$_ _$!_
26 -- combinatorics infixl 6.5 _P_ _P′_ _C_ _C′_
27 -- pair infixr 4 _,_
28
29 -- Reasoning:
30 -- QED infix 3 _∎
31 -- stepping infixr 2 _≡⟨⟩_ step-≡ step-≡˘
32 -- begin infix 1 begin_
33
34 -- type formers:
35 -- product-like infixr 2 _×_ _-×-_ _-,-_
36 -- sum-like infixr 1 _⊎_
37 -- binary properties infix 4 _Absorbs_