4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>PhantomType</title>
7 <link rel="stylesheet" href="./asciidoc.css" type="text/css">
8 <link rel="stylesheet" href="./pygments.css" type="text/css">
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
19 <body class="article">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
30 <div class="sectionbody">
31 <div class="paragraph"><p>A phantom type is a type that has no run-time representation, but is
32 used to force the type checker to ensure invariants at compile time.
33 This is done by augmenting a type with additional arguments (phantom
34 type variables) and expressing constraints by choosing phantom types
35 to stand for the phantom types in the types of values.</p></div>
39 <h2 id="_also_see">Also see</h2>
40 <div class="sectionbody">
41 <div class="ulist"><ul>
44 <a href="References#Blume01">Blume01</a>
46 <div class="ulist"><ul>
61 <a href="References#FluetPucella06">FluetPucella06</a>
63 <div class="ulist"><ul>
73 socket module in <a href="BasisLibrary">Basis Library</a>
80 <div id="footnotes"><hr></div>
82 <div id="footer-text">
84 <div id="footer-badges">