Hash :
99f3ddcd
Author :
Date :
2021-06-13T22:00:43
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
module Test.test where
import Relation.Binary.PropositionalEquality as Eq
open Eq hiding (_≡_; refl)
open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; _∎) renaming (begin_ to start_)
----------------------------------------------------
[
["keyword", "module"],
" Test",
["punctuation", "."],
"test ",
["keyword", "where"],
["keyword", "import"],
" Relation",
["punctuation", "."],
"Binary",
["punctuation", "."],
"PropositionalEquality as Eq\r\n",
["keyword", "open"],
" Eq ",
["keyword", "hiding"],
["punctuation", "("],
"_≡_",
["punctuation", ";"],
" refl",
["punctuation", ")"],
["keyword", "open"],
" Eq",
["punctuation", "."],
"≡-Reasoning ",
["keyword", "using"],
["punctuation", "("],
"begin_",
["punctuation", ";"],
" _≡⟨⟩_",
["punctuation", ";"],
" _∎",
["punctuation", ")"],
["keyword", "renaming"],
["punctuation", "("],
"begin_ to start_",
["punctuation", ")"]
]
----------------------------------------------------
Agda's module system is one based on namespaces and corresponding to file structure.
It supports namespace importing, open importing, partial hiding/using and renaming.