File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{-|
22This module reexports all our language definitions as new modules.
3- If you intend to work with more than one language in a file
4- we recommend using this module to easily import the languages you need.
3+ Instead of directly importing the language modules,
4+ we recommend importing this module if you do not want to apply the module parameters.
5+
6+ For convenience, we change explicit module parameters to implicit ones where useful.
7+ The rule of thumb is:
8+ Types use explicit arguments whereas functions use implicit arguments.
9+ In case you want to instantiate these module parameters with a fixed value,
10+ you can use `Vatras.Lang.All.Fixed` instead of this module.
511-}
612module Vatras.Lang.All where
713
@@ -21,6 +27,12 @@ open import Size using (∞)
2127open import Vatras.Framework.Definitions using (𝔽; 𝔸; 𝕍)
2228open import Vatras.Framework.Variants using (Rose)
2329
30+ {-
31+ Some definitions do not make use of the module parameter.
32+ In such cases explicit arguments would be confusing and implicit paramters would lead to unsolved metas.
33+ Hence, we assert that these parameters are unused by passing `⊥` for `𝔽` or `λ _ → ⊥` for `𝔸`.
34+ -}
35+
2436module VariantList where
2537 open Vatras.Lang.VariantList using (VariantList; VariantListL; Clone-and-Own) public
2638 open Vatras.Lang.VariantList (λ _ → ⊥) using (Configuration) public
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import Vatras.Lang.Gruler
1717module VariantList = Vatras.Lang.VariantList V
1818module CCC = Vatras.Lang.CCC F
1919module NCC where
20+ -- Similar as in `Vatras.Lang.All`, we make the arity argument implicit for usablity.
2021 open Vatras.Lang.NCC F using (NCC; NCCL; Configuration) public
2122 module _ {n : ℕ≥ 2 } where
2223 open Vatras.Lang.NCC F n hiding (NCC; NCCL; Configuration) public
You can’t perform that action at this time.
0 commit comments