Commit | Line | Data |
---|---|---|
7f918cf1 CE |
1 | <!DOCTYPE html>\r |
2 | <html lang="en">\r | |
3 | <head>\r | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\r | |
5 | <meta name="generator" content="AsciiDoc 8.6.9">\r | |
6 | <title>PhantomType</title>\r | |
7 | <link rel="stylesheet" href="./asciidoc.css" type="text/css">\r | |
8 | <link rel="stylesheet" href="./pygments.css" type="text/css">\r | |
9 | \r | |
10 | \r | |
11 | <script type="text/javascript" src="./asciidoc.js"></script>\r | |
12 | <script type="text/javascript">\r | |
13 | /*<![CDATA[*/\r | |
14 | asciidoc.install();\r | |
15 | /*]]>*/\r | |
16 | </script>\r | |
17 | <link rel="stylesheet" href="./mlton.css" type="text/css">\r | |
18 | </head>\r | |
19 | <body class="article">\r | |
20 | <div id="banner">\r | |
21 | <div id="banner-home">\r | |
22 | <a href="./Home">MLton 20180207</a>\r | |
23 | </div>\r | |
24 | </div>\r | |
25 | <div id="header">\r | |
26 | <h1>PhantomType</h1>\r | |
27 | </div>\r | |
28 | <div id="content">\r | |
29 | <div id="preamble">\r | |
30 | <div class="sectionbody">\r | |
31 | <div class="paragraph"><p>A phantom type is a type that has no run-time representation, but is\r | |
32 | used to force the type checker to ensure invariants at compile time.\r | |
33 | This is done by augmenting a type with additional arguments (phantom\r | |
34 | type variables) and expressing constraints by choosing phantom types\r | |
35 | to stand for the phantom types in the types of values.</p></div>\r | |
36 | </div>\r | |
37 | </div>\r | |
38 | <div class="sect1">\r | |
39 | <h2 id="_also_see">Also see</h2>\r | |
40 | <div class="sectionbody">\r | |
41 | <div class="ulist"><ul>\r | |
42 | <li>\r | |
43 | <p>\r | |
44 | <a href="References#Blume01">Blume01</a>\r | |
45 | </p>\r | |
46 | <div class="ulist"><ul>\r | |
47 | <li>\r | |
48 | <p>\r | |
49 | dimensions\r | |
50 | </p>\r | |
51 | </li>\r | |
52 | <li>\r | |
53 | <p>\r | |
54 | C type system\r | |
55 | </p>\r | |
56 | </li>\r | |
57 | </ul></div>\r | |
58 | </li>\r | |
59 | <li>\r | |
60 | <p>\r | |
61 | <a href="References#FluetPucella06">FluetPucella06</a>\r | |
62 | </p>\r | |
63 | <div class="ulist"><ul>\r | |
64 | <li>\r | |
65 | <p>\r | |
66 | subtyping\r | |
67 | </p>\r | |
68 | </li>\r | |
69 | </ul></div>\r | |
70 | </li>\r | |
71 | <li>\r | |
72 | <p>\r | |
73 | socket module in <a href="BasisLibrary">Basis Library</a>\r | |
74 | </p>\r | |
75 | </li>\r | |
76 | </ul></div>\r | |
77 | </div>\r | |
78 | </div>\r | |
79 | </div>\r | |
80 | <div id="footnotes"><hr></div>\r | |
81 | <div id="footer">\r | |
82 | <div id="footer-text">\r | |
83 | </div>\r | |
84 | <div id="footer-badges">\r | |
85 | </div>\r | |
86 | </div>\r | |
87 | </body>\r | |
88 | </html>\r |