Debian Codegraph @

src/Reflection.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Support for reflection
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 module Reflection where
10
11 ------------------------------------------------------------------------
12 -- Re-export contents publicly
13
14 open import Reflection.AST public
15 open import Reflection.TCM public
16 open import Reflection.TCM.Syntax public
17 using (_>>=_; _>>_)
18
19
20 ------------------------------------------------------------------------
21 -- DEPRECATED NAMES
22 ------------------------------------------------------------------------
23 -- Please use the new names as continuing support for the old names is
24 -- not guaranteed.
25
26 import Reflection.AST.Abstraction as Abstraction
27 import Reflection.AST.Argument as Argument
28 import Reflection.AST.Definition as Definition
29 import Reflection.AST.Meta as Meta
30 import Reflection.AST.Name as Name
31 import Reflection.AST.Literal as Literal
32 import Reflection.AST.Pattern as Pattern
33 import Reflection.AST.Term as Term
34 import Reflection.AST.Argument.Modality as Modality
35 import Reflection.AST.Argument.Quantity as Quantity
36 import Reflection.AST.Argument.Relevance as Relevance
37 import Reflection.AST.Argument.Visibility as Visibility
38 import Reflection.AST.Argument.Information as Information
39
40 -- Version 1.3
41
42 Arg-info = Information.ArgInfo
43 {-# WARNING_ON_USAGE Arg-info
44 "Warning: Arg-info was deprecated in v1.3.
45 Please use Reflection.AST.Argument.Information's ArgInfo instead."
46 #-}
47
48 infix 4 _≟-Lit_ _≟-Name_ _≟-Meta_ _≟-Visibility_ _≟-Relevance_ _≟-Arg-info_
49 _≟-Pattern_ _≟-ArgPatterns_
50
51 _≟-Lit_ = Literal._≟_
52 {-# WARNING_ON_USAGE _≟-Lit_
53 "Warning: _≟-Lit_ was deprecated in v1.3.
54 Please use Reflection.AST.Literal's _≟_ instead."
55 #-}
56
57 _≟-Name_ = Name._≟_
58 {-# WARNING_ON_USAGE _≟-Name_
59 "Warning: _≟-Name_ was deprecated in v1.3.
60 Please use Reflection.AST.Name's _≟_ instead."
61 #-}
62
63 _≟-Meta_ = Meta._≟_
64 {-# WARNING_ON_USAGE _≟-Meta_
65 "Warning: _≟-Meta_ was deprecated in v1.3.
66 Please use Reflection.AST.Meta's _≟_ instead."
67 #-}
68
69 _≟-Visibility_ = Visibility._≟_
70 {-# WARNING_ON_USAGE _≟-Visibility_
71 "Warning: _≟-Visibility_ was deprecated in v1.3.
72 Please use Reflection.AST.Argument.Visibility's _≟_ instead."
73 #-}
74
75 _≟-Relevance_ = Relevance._≟_
76 {-# WARNING_ON_USAGE _≟-Relevance_
77 "Warning: _≟-Relevance_ was deprecated in v1.3.
78 Please use Reflection.AST.Argument.Relevance's _≟_ instead."
79 #-}
80
81 _≟-Arg-info_ = Information._≟_
82 {-# WARNING_ON_USAGE _≟-Arg-info_
83 "Warning: _≟-Arg-info_ was deprecated in v1.3.
84 Please use Reflection.AST.Argument.Information's _≟_ instead."
85 #-}
86
87 _≟-Pattern_ = Pattern._≟_
88 {-# WARNING_ON_USAGE _≟-Pattern_
89 "Warning: _≟-Pattern_ was deprecated in v1.3.
90 Please use Reflection.AST.Pattern's _≟_ instead."
91 #-}
92
93 _≟-ArgPatterns_ = Pattern._≟s_
94 {-# WARNING_ON_USAGE _≟-ArgPatterns_
95 "Warning: _≟-ArgPatterns_ was deprecated in v1.3.
96 Please use Reflection.AST.Pattern's _≟s_ instead."
97 #-}
98
99 map-Abs = Abstraction.map
100 {-# WARNING_ON_USAGE map-Abs
101 "Warning: map-Abs was deprecated in v1.3.
102 Please use Reflection.AST.Abstraction's map instead."
103 #-}
104
105 map-Arg = Argument.map
106 {-# WARNING_ON_USAGE map-Arg
107 "Warning: map-Arg was deprecated in v1.3.
108 Please use Reflection.AST.Argument's map instead."
109 #-}
110
111 map-Args = Argument.map-Args
112 {-# WARNING_ON_USAGE map-Args
113 "Warning: map-Args was deprecated in v1.3.
114 Please use Reflection.AST.Argument's map-Args instead."
115 #-}
116
117 visibility = Information.visibility
118 {-# WARNING_ON_USAGE visibility
119 "Warning: visibility was deprecated in v1.3.
120 Please use Reflection.AST.Argument.Information's visibility instead."
121 #-}
122
123 relevance = Modality.relevance
124 {-# WARNING_ON_USAGE relevance
125 "Warning: relevance was deprecated in v1.3.
126 Please use Reflection.AST.Argument.Modality's relevance instead."
127 #-}
128
129 infix 4 _≟-AbsTerm_ _≟-AbsType_ _≟-ArgTerm_ _≟-ArgType_ _≟-Args_
130 _≟-Clause_ _≟-Clauses_ _≟_
131 _≟-Sort_
132
133 _≟-AbsTerm_ = Term._≟-AbsTerm_
134 {-# WARNING_ON_USAGE _≟-AbsTerm_
135 "Warning: _≟-AbsTerm_ was deprecated in v1.3.
136 Please use Reflection.AST.Term's _≟-AbsTerm_ instead."
137 #-}
138
139 _≟-AbsType_ = Term._≟-AbsType_
140 {-# WARNING_ON_USAGE _≟-AbsType_
141 "Warning: _≟-AbsType_ was deprecated in v1.3.
142 Please use Reflection.AST.Term's _≟-AbsType_ instead."
143 #-}
144
145 _≟-ArgTerm_ = Term._≟-ArgTerm_
146 {-# WARNING_ON_USAGE _≟-ArgTerm_
147 "Warning: _≟-ArgTerm_ was deprecated in v1.3.
148 Please use Reflection.AST.Term's _≟-ArgTerm_ instead."
149 #-}
150
151 _≟-ArgType_ = Term._≟-ArgType_
152 {-# WARNING_ON_USAGE _≟-ArgType_
153 "Warning: _≟-ArgType_ was deprecated in v1.3.
154 Please use Reflection.AST.Term's _≟-ArgType_ instead."
155 #-}
156
157 _≟-Args_ = Term._≟-Args_
158 {-# WARNING_ON_USAGE _≟-Args_
159 "Warning: _≟-Args_ was deprecated in v1.3.
160 Please use Reflection.AST.Term's _≟-Args_ instead."
161 #-}
162
163 _≟-Clause_ = Term._≟-Clause_
164 {-# WARNING_ON_USAGE _≟-Clause_
165 "Warning: _≟-Clause_ was deprecated in v1.3.
166 Please use Reflection.AST.Term's _≟-Clause_ instead."
167 #-}
168
169 _≟-Clauses_ = Term._≟-Clauses_
170 {-# WARNING_ON_USAGE _≟-Clauses_
171 "Warning: _≟-Clauses_ was deprecated in v1.3.
172 Please use Reflection.AST.Term's _≟-Clauses_ instead."
173 #-}
174
175 _≟_ = Term._≟_
176 {-# WARNING_ON_USAGE _≟_
177 "Warning: _≟_ was deprecated in v1.3.
178 Please use Reflection.AST.Term's _≟_ instead."
179 #-}
180
181 _≟-Sort_ = Term._≟-Sort_
182 {-# WARNING_ON_USAGE _≟-Sort_
183 "Warning: _≟-Sort_ was deprecated in v1.3.
184 Please use Reflection.AST.Term's _≟-Sort_ instead."
185 #-}