Debian Codegraph @

basis-library/primitive/prim-basis.sml

raw
1 (* Copyright (C) 1999-2007 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 * Copyright (C) 1997-2000 NEC Research Institute.
4 *
5 * MLton is released under a HPND-style license.
6 * See the file MLton-LICENSE for details.
7 *)
8
9 structure Primitive = struct
10
11 (* Primitive Basis (Definition) *)
12 structure Bool =
13 struct
14 datatype t = datatype bool
15 datatype bool = datatype t
16 end
17 structure Exn =
18 struct
19 type t = exn
20 type exn = t
21 exception Bind = Bind
22 exception Match = Match
23 end
24 structure List =
25 struct
26 datatype t = datatype list
27 datatype list = datatype t
28 end
29 structure Ref =
30 struct
31 datatype t = datatype ref
32 datatype ref = datatype t
33 end
34 structure Unit =
35 struct
36 type t = unit
37 type unit = t
38 end
39
40 (* Primitive Basis (Basis Library) *)
41 structure Array =
42 struct
43 type 'a t = 'a array
44 type 'a array = 'a t
45 end
46 structure Vector =
47 struct
48 type 'a t = 'a vector
49 type 'a vector = 'a t
50 end
51
52 (* Primitive Basis (Primitive Types) *)
53 structure Char8 =
54 struct
55 type t = char8
56 type char = t
57 end
58 structure Char16 =
59 struct
60 type t = char16
61 type char = t
62 end
63 structure Char32 =
64 struct
65 type t = char32
66 type char = t
67 end
68
69 structure Int1 =
70 struct
71 type t = int1
72 type int = t
73 end
74 structure Int2 =
75 struct
76 type t = int2
77 type int = t
78 end
79 structure Int3 =
80 struct
81 type t = int3
82 type int = t
83 end
84 structure Int4 =
85 struct
86 type t = int4
87 type int = t
88 end
89 structure Int5 =
90 struct
91 type t = int5
92 type int = t
93 end
94 structure Int6 =
95 struct
96 type t = int6
97 type int = t
98 end
99 structure Int7 =
100 struct
101 type t = int7
102 type int = t
103 end
104 structure Int8 =
105 struct
106 type t = int8
107 type int = t
108 end
109 structure Int9 =
110 struct
111 type t = int9
112 type int = t
113 end
114 structure Int10 =
115 struct
116 type t = int10
117 type int = t
118 end
119 structure Int11 =
120 struct
121 type t = int11
122 type int = t
123 end
124 structure Int12 =
125 struct
126 type t = int12
127 type int = t
128 end
129 structure Int13 =
130 struct
131 type t = int13
132 type int = t
133 end
134 structure Int14 =
135 struct
136 type t = int14
137 type int = t
138 end
139 structure Int15 =
140 struct
141 type t = int15
142 type int = t
143 end
144 structure Int16 =
145 struct
146 type t = int16
147 type int = t
148 end
149 structure Int17 =
150 struct
151 type t = int17
152 type int = t
153 end
154 structure Int18 =
155 struct
156 type t = int18
157 type int = t
158 end
159 structure Int19 =
160 struct
161 type t = int19
162 type int = t
163 end
164 structure Int20 =
165 struct
166 type t = int20
167 type int = t
168 end
169 structure Int21 =
170 struct
171 type t = int21
172 type int = t
173 end
174 structure Int22 =
175 struct
176 type t = int22
177 type int = t
178 end
179 structure Int23 =
180 struct
181 type t = int23
182 type int = t
183 end
184 structure Int24 =
185 struct
186 type t = int24
187 type int = t
188 end
189 structure Int25 =
190 struct
191 type t = int25
192 type int = t
193 end
194 structure Int26 =
195 struct
196 type t = int26
197 type int = t
198 end
199 structure Int27 =
200 struct
201 type t = int27
202 type int = t
203 end
204 structure Int28 =
205 struct
206 type t = int28
207 type int = t
208 end
209 structure Int29 =
210 struct
211 type t = int29
212 type int = t
213 end
214 structure Int30 =
215 struct
216 type t = int30
217 type int = t
218 end
219 structure Int31 =
220 struct
221 type t = int31
222 type int = t
223 end
224 structure Int32 =
225 struct
226 type t = int32
227 type int = t
228 end
229 structure Int64 =
230 struct
231 type t = int64
232 type int = t
233 end
234 structure IntInf =
235 struct
236 type t = intInf
237 type int = t
238 end
239
240 structure Real32 =
241 struct
242 type t = real32
243 type real = t
244 end
245 structure Real64 =
246 struct
247 type t = real64
248 type real = t
249 end
250
251 structure String8 =
252 struct
253 type t = Char8.t vector
254 type string = t
255 end
256 structure String16 =
257 struct
258 type t = Char16.t vector
259 type string = t
260 end
261 structure String32 =
262 struct
263 type t = Char32.t vector
264 type string = t
265 end
266
267 structure Word1 =
268 struct
269 type t = word1
270 type word = t
271 end
272 structure Word2 =
273 struct
274 type t = word2
275 type word = t
276 end
277 structure Word3 =
278 struct
279 type t = word3
280 type word = t
281 end
282 structure Word4 =
283 struct
284 type t = word4
285 type word = t
286 end
287 structure Word5 =
288 struct
289 type t = word5
290 type word = t
291 end
292 structure Word6 =
293 struct
294 type t = word6
295 type word = t
296 end
297 structure Word7 =
298 struct
299 type t = word7
300 type word = t
301 end
302 structure Word8 =
303 struct
304 type t = word8
305 type word = t
306 end
307 structure Word9 =
308 struct
309 type t = word9
310 type word = t
311 end
312 structure Word10 =
313 struct
314 type t = word10
315 type word = t
316 end
317 structure Word11 =
318 struct
319 type t = word11
320 type word = t
321 end
322 structure Word12 =
323 struct
324 type t = word12
325 type word = t
326 end
327 structure Word13 =
328 struct
329 type t = word13
330 type word = t
331 end
332 structure Word14 =
333 struct
334 type t = word14
335 type word = t
336 end
337 structure Word15 =
338 struct
339 type t = word15
340 type word = t
341 end
342 structure Word16 =
343 struct
344 type t = word16
345 type word = t
346 end
347 structure Word17 =
348 struct
349 type t = word17
350 type word = t
351 end
352 structure Word18 =
353 struct
354 type t = word18
355 type word = t
356 end
357 structure Word19 =
358 struct
359 type t = word19
360 type word = t
361 end
362 structure Word20 =
363 struct
364 type t = word20
365 type word = t
366 end
367 structure Word21 =
368 struct
369 type t = word21
370 type word = t
371 end
372 structure Word22 =
373 struct
374 type t = word22
375 type word = t
376 end
377 structure Word23 =
378 struct
379 type t = word23
380 type word = t
381 end
382 structure Word24 =
383 struct
384 type t = word24
385 type word = t
386 end
387 structure Word25 =
388 struct
389 type t = word25
390 type word = t
391 end
392 structure Word26 =
393 struct
394 type t = word26
395 type word = t
396 end
397 structure Word27 =
398 struct
399 type t = word27
400 type word = t
401 end
402 structure Word28 =
403 struct
404 type t = word28
405 type word = t
406 end
407 structure Word29 =
408 struct
409 type t = word29
410 type word = t
411 end
412 structure Word30 =
413 struct
414 type t = word30
415 type word = t
416 end
417 structure Word31 =
418 struct
419 type t = word31
420 type word = t
421 end
422 structure Word32 =
423 struct
424 type t = word32
425 type word = t
426 end
427 structure Word64 =
428 struct
429 type t = word64
430 type word = t
431 end
432
433 (* Primitive Basis (MLton Extensions) *)
434 structure Pointer =
435 struct
436 type t = cpointer
437 end
438 structure Thread =
439 struct
440 type t = thread
441 end
442 structure Weak =
443 struct
444 type 'a t = 'a weak
445 end
446
447 end
448
449 (* Top-level bindings *)
450 datatype bool = datatype Primitive.Bool.bool
451 type exn = Primitive.Exn.exn
452 datatype list = datatype Primitive.List.list
453 datatype ref = datatype Primitive.Ref.ref
454 type unit = Primitive.Unit.unit
455 type 'a array = 'a Primitive.Array.array
456 type 'a vector = 'a Primitive.Vector.vector