<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="AsciiDoc 8.6.10">
<title>PhantomType</title>
<link rel="stylesheet" href="./asciidoc.css" type="text/css">
<link rel="stylesheet" href="./pygments.css" type="text/css">


<script type="text/javascript" src="./asciidoc.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
asciidoc.install();
/*]]>*/
</script>
<link rel="stylesheet" href="./mlton.css" type="text/css">
</head>
<body class="article">
<div id="banner">
<div id="banner-home">
<a href="./Home">MLton 20201002</a>
</div>
</div>
<div id="header">
<h1>PhantomType</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p>A phantom type is a type that has no run-time representation, but is
used to force the type checker to ensure invariants at compile time.
This is done by augmenting a type with additional arguments (phantom
type variables) and expressing constraints by choosing phantom types
to stand for the phantom types in the types of values.</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_also_see">Also see</h2>
<div class="sectionbody">
<div class="ulist"><ul>
<li>
<p>
<a href="References#Blume01">Blume01</a>
</p>
<div class="ulist"><ul>
<li>
<p>
dimensions
</p>
</li>
<li>
<p>
C type system
</p>
</li>
</ul></div>
</li>
<li>
<p>
<a href="References#FluetPucella06">FluetPucella06</a>
</p>
<div class="ulist"><ul>
<li>
<p>
subtyping
</p>
</li>
</ul></div>
</li>
<li>
<p>
socket module in <a href="BasisLibrary">Basis Library</a>
</p>
</li>
</ul></div>
</div>
</div>
</div>
<div id="footnotes"><hr></div>
<div id="footer">
<div id="footer-text">
</div>
<div id="footer-badges">
</div>
</div>
</body>
</html>
