diff options
author | Niklas Haas <git@nand.wakku.to> | 2014-02-23 15:21:52 +0100 |
---|---|---|
committer | Niklas Haas <git@nand.wakku.to> | 2014-02-23 15:21:52 +0100 |
commit | 14531f7838c5abd0ba2aaf5217a477194d7b1897 (patch) | |
tree | 193113d2e0c81bb918b5436f34618b5f4d5c2f77 /html-test | |
parent | 1944b94edca881d14e979d564719da6f196f8e63 (diff) |
Make ImplicitParams render correctly (#260)
This introduces a new precedence level for single contexts (because
implicit param contexts always need parens around them, but other types
of contexts don't necessarily, even when alone)
Diffstat (limited to 'html-test')
-rw-r--r-- | html-test/ref/ImplicitParams.html | 89 | ||||
-rw-r--r-- | html-test/src/ImplicitParams.hs | 10 |
2 files changed, 99 insertions, 0 deletions
diff --git a/html-test/ref/ImplicitParams.html b/html-test/ref/ImplicitParams.html new file mode 100644 index 00000000..0219b323 --- /dev/null +++ b/html-test/ref/ImplicitParams.html @@ -0,0 +1,89 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" +><head + ><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" + /><title + >ImplicitParams</title + ><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" + /><script src="haddock-util.js" type="text/javascript" + ></script + ><script type="text/javascript" + >//<![CDATA[ +window.onload = function () {pageLoad();setSynopsis("mini_ImplicitParams.html");}; +//]]> +</script + ></head + ><body + ><div id="package-header" + ><ul class="links" id="page-menu" + ><li + ><a href="index.html" + >Contents</a + ></li + ><li + ><a href="doc-index.html" + >Index</a + ></li + ></ul + ><p class="caption empty" + > </p + ></div + ><div id="content" + ><div id="module-header" + ><table class="info" + ><tr + ><th + >Safe Haskell</th + ><td + >Safe-Inferred</td + ></tr + ></table + ><p class="caption" + >ImplicitParams</p + ></div + ><div id="interface" + ><h1 + >Documentation</h1 + ><div class="top" + ><p class="src" + ><span class="keyword" + >data</span + > <a name="t:X" class="def" + >X</a + ></p + ></div + ><div class="top" + ><p class="src" + ><a name="v:c" class="def" + >c</a + > :: (?x :: <a href="ImplicitParams.html#t:X" + >X</a + >) => <a href="ImplicitParams.html#t:X" + >X</a + ></p + ></div + ><div class="top" + ><p class="src" + ><a name="v:d" class="def" + >d</a + > :: (?x :: <a href="ImplicitParams.html#t:X" + >X</a + >, ?y :: <a href="ImplicitParams.html#t:X" + >X</a + >) => (<a href="ImplicitParams.html#t:X" + >X</a + >, <a href="ImplicitParams.html#t:X" + >X</a + >)</p + ></div + ></div + ></div + ><div id="footer" + ><p + >Produced by <a href="http://www.haskell.org/haddock/" + >Haddock</a + > version 2.14.0</p + ></div + ></body + ></html +> diff --git a/html-test/src/ImplicitParams.hs b/html-test/src/ImplicitParams.hs new file mode 100644 index 00000000..4595b8f7 --- /dev/null +++ b/html-test/src/ImplicitParams.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE ImplicitParams #-} +module ImplicitParams where + +data X + +c :: (?x :: X) => X +c = ?x + +d :: (?x :: X, ?y :: X) => (X, X) +d = (?x, ?y) |