aboutsummaryrefslogtreecommitdiff
path: root/html-test
diff options
context:
space:
mode:
authorŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-08-06 21:22:06 +0200
committerŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-08-06 21:22:06 +0200
commit66c91a3c20d18f2a2f9ccfbbc7a04bddd5507008 (patch)
treeefcd84ecab64417a19ff5cc2871932f30878a664 /html-test
parent3ad8ada0ea2982ba7974e381f07e84c35c9559af (diff)
Rename advanced types test case and accept new output.
Diffstat (limited to 'html-test')
-rw-r--r--html-test/ref/AdvanceTypes.html97
-rw-r--r--html-test/ref/PromotedTypes.html201
-rw-r--r--html-test/src/PromotedTypes.hs (renamed from html-test/src/AdvanceTypes.hs)4
3 files changed, 204 insertions, 98 deletions
diff --git a/html-test/ref/AdvanceTypes.html b/html-test/ref/AdvanceTypes.html
deleted file mode 100644
index f608efea..00000000
--- a/html-test/ref/AdvanceTypes.html
+++ /dev/null
@@ -1,97 +0,0 @@
-<!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
- >AdvanceTypes</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_AdvanceTypes.html");};
-//]]>
-</script
- ></head
- ><body
- ><div id="package-header"
- ><ul class="links" id="page-menu"
- ><li
- ><a href=""
- >Contents</a
- ></li
- ><li
- ><a href=""
- >Index</a
- ></li
- ></ul
- ><p class="caption empty"
- >&nbsp;</p
- ></div
- ><div id="content"
- ><div id="module-header"
- ><table class="info"
- ><tr
- ><th
- >Safe Haskell</th
- ><td
- >Safe</td
- ></tr
- ></table
- ><p class="caption"
- >AdvanceTypes</p
- ></div
- ><div id="interface"
- ><h1
- >Documentation</h1
- ><div class="top"
- ><p class="src"
- ><span class="keyword"
- >data</span
- > <a href="" id="t:Pattern" class="def"
- >Pattern</a
- > :: [*] -&gt; * <span class="keyword"
- >where</span
- ></p
- ><div class="subs constructors"
- ><p class="caption"
- >Constructors</p
- ><table
- ><tr
- ><td class="src"
- ><a href="" id="v:Nil" class="def"
- >Nil</a
- > :: <a href=""
- >Pattern</a
- > []</td
- ><td class="doc empty"
- >&nbsp;</td
- ></tr
- ><tr
- ><td class="src"
- ><a href="" id="v:Cons" class="def"
- >Cons</a
- > :: <a href=""
- >Maybe</a
- > h -&gt; <a href=""
- >Pattern</a
- > t -&gt; <a href=""
- >Pattern</a
- > (h : t)</td
- ><td class="doc empty"
- >&nbsp;</td
- ></tr
- ></table
- ></div
- ></div
- ></div
- ></div
- ><div id="footer"
- ><p
- >Produced by <a href=""
- >Haddock</a
- > version 2.16.2</p
- ></div
- ></body
- ></html
->
diff --git a/html-test/ref/PromotedTypes.html b/html-test/ref/PromotedTypes.html
new file mode 100644
index 00000000..db42f637
--- /dev/null
+++ b/html-test/ref/PromotedTypes.html
@@ -0,0 +1,201 @@
+<!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
+ >PromotedTypes</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_PromotedTypes.html");};
+//]]>
+</script
+ ></head
+ ><body
+ ><div id="package-header"
+ ><ul class="links" id="page-menu"
+ ><li
+ ><a href=""
+ >Contents</a
+ ></li
+ ><li
+ ><a href=""
+ >Index</a
+ ></li
+ ></ul
+ ><p class="caption empty"
+ >&nbsp;</p
+ ></div
+ ><div id="content"
+ ><div id="module-header"
+ ><table class="info"
+ ><tr
+ ><th
+ >Safe Haskell</th
+ ><td
+ >Safe</td
+ ></tr
+ ></table
+ ><p class="caption"
+ >PromotedTypes</p
+ ></div
+ ><div id="interface"
+ ><h1
+ >Documentation</h1
+ ><div class="top"
+ ><p class="src"
+ ><span class="keyword"
+ >data</span
+ > <a href="" id="t:RevList" class="def"
+ >RevList</a
+ > a</p
+ ><div class="subs constructors"
+ ><p class="caption"
+ >Constructors</p
+ ><table
+ ><tr
+ ><td class="src"
+ ><a href="" id="v:RNil" class="def"
+ >RNil</a
+ ></td
+ ><td class="doc empty"
+ >&nbsp;</td
+ ></tr
+ ><tr
+ ><td class="src"
+ >(<a href=""
+ >RevList</a
+ > a) <a href="" id="v::-62-" class="def"
+ >:&gt;</a
+ > a</td
+ ><td class="doc empty"
+ >&nbsp;</td
+ ></tr
+ ></table
+ ></div
+ ></div
+ ><div class="top"
+ ><p class="src"
+ ><span class="keyword"
+ >data</span
+ > <a href="" id="t:Pattern" class="def"
+ >Pattern</a
+ > :: [*] -&gt; * <span class="keyword"
+ >where</span
+ ></p
+ ><div class="subs constructors"
+ ><p class="caption"
+ >Constructors</p
+ ><table
+ ><tr
+ ><td class="src"
+ ><a href="" id="v:Nil" class="def"
+ >Nil</a
+ > :: <a href=""
+ >Pattern</a
+ > '[]</td
+ ><td class="doc empty"
+ >&nbsp;</td
+ ></tr
+ ><tr
+ ><td class="src"
+ ><a href="" id="v:Cons" class="def"
+ >Cons</a
+ > :: <a href=""
+ >Maybe</a
+ > h -&gt; <a href=""
+ >Pattern</a
+ > t -&gt; <a href=""
+ >Pattern</a
+ > (h ': t)</td
+ ><td class="doc empty"
+ >&nbsp;</td
+ ></tr
+ ></table
+ ></div
+ ></div
+ ><div class="top"
+ ><p class="src"
+ ><span class="keyword"
+ >data</span
+ > <a href="" id="t:RevPattern" class="def"
+ >RevPattern</a
+ > :: <a href=""
+ >RevList</a
+ > * -&gt; * <span class="keyword"
+ >where</span
+ ></p
+ ><div class="subs constructors"
+ ><p class="caption"
+ >Constructors</p
+ ><table
+ ><tr
+ ><td class="src"
+ ><a href="" id="v:RevNil" class="def"
+ >RevNil</a
+ > :: <a href=""
+ >RevPattern</a
+ > <a href=""
+ >RNil</a
+ ></td
+ ><td class="doc empty"
+ >&nbsp;</td
+ ></tr
+ ><tr
+ ><td class="src"
+ ><a href="" id="v:RevCons" class="def"
+ >RevCons</a
+ > :: <a href=""
+ >Maybe</a
+ > h -&gt; <a href=""
+ >RevPattern</a
+ > t -&gt; <a href=""
+ >RevPattern</a
+ > (t <a href=""
+ >:&gt;</a
+ > h)</td
+ ><td class="doc empty"
+ >&nbsp;</td
+ ></tr
+ ></table
+ ></div
+ ></div
+ ><div class="top"
+ ><p class="src"
+ ><span class="keyword"
+ >data</span
+ > <a href="" id="t:Tuple" class="def"
+ >Tuple</a
+ > :: (*, *) -&gt; * <span class="keyword"
+ >where</span
+ ></p
+ ><div class="subs constructors"
+ ><p class="caption"
+ >Constructors</p
+ ><table
+ ><tr
+ ><td class="src"
+ ><a href="" id="v:Tuple" class="def"
+ >Tuple</a
+ > :: a -&gt; b -&gt; <a href=""
+ >Tuple</a
+ > '(a, b)</td
+ ><td class="doc empty"
+ >&nbsp;</td
+ ></tr
+ ></table
+ ></div
+ ></div
+ ></div
+ ></div
+ ><div id="footer"
+ ><p
+ >Produced by <a href=""
+ >Haddock</a
+ > version 2.16.2</p
+ ></div
+ ></body
+ ></html
+>
diff --git a/html-test/src/AdvanceTypes.hs b/html-test/src/PromotedTypes.hs
index c89d7396..ae3ad375 100644
--- a/html-test/src/AdvanceTypes.hs
+++ b/html-test/src/PromotedTypes.hs
@@ -2,7 +2,9 @@
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeOperators #-}
-module AdvanceTypes where
+
+
+module PromotedTypes where
data RevList a = RNil | RevList a :> a