aboutsummaryrefslogblamecommitdiff
path: root/html-test/ref/Bug6.html
blob: 407a031ca0a8f335f48683b9bd7255c8404ffd7b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11









                                                                                                                         
                                                                        




                                     
                      
               
                   
               
                               


                            



                             
                     

                           





                            
                                







                                                                                  
                        
                 
                          

                        


                                
                        
                 
                          
                 
                               


                               




                                
                        
                 
                          
                 
                               


                               
                     


                               




                                
                        
                 
                          



                        


                                
                        
                 
                          

                        








                                
                                             
                 
                
                           
                                                         





                                         
                                                
                       
                              









                                      
                                             
                 
                

                                                                                    
                                                                               





                                         
                                                








                                         










                                                        








                                
                                             
                 
                
                           
                                                                       





                                         
                                                








                                         




















                                                         








                                
                                             
                 
                

                                                                                 
                                      





                                         
                                                
                       


                              









                                      
                                             
                 
                
                           
                                      





                                         
                                                
                       
                              









                                      
                             
                           


            
<!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
    >Bug6</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_Bug6.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"
	>Bug6</p
	></div
      ><div id="description"
      ><p class="caption"
	>Description</p
	><div class="doc"
	><p
	  >Exporting records.</p
	  ></div
	></div
      ><div id="synopsis"
      ><p id="control.syn" class="caption expander" onclick="toggleSection('syn')"
	>Synopsis</p
	><ul id="section.syn" class="hide" onclick="toggleSection('syn')"
	><li class="src short"
	  ><span class="keyword"
	    >data</span
	    > <a href=""
	    >A</a
	    > = <a href=""
	    >A</a
	    > <a href=""
	    >Int</a
	    ></li
	  ><li class="src short"
	  ><span class="keyword"
	    >data</span
	    > <a href=""
	    >B</a
	    > = <a href=""
	    >B</a
	    > {<ul class="subs"
	    ><li
	      ><a href=""
		>b</a
		> :: <a href=""
		>Int</a
		></li
	      ></ul
	    >}</li
	  ><li class="src short"
	  ><span class="keyword"
	    >data</span
	    > <a href=""
	    >C</a
	    > = <a href=""
	    >C</a
	    > {<ul class="subs"
	    ><li
	      ><a href=""
		>c1</a
		> :: <a href=""
		>Int</a
		></li
	      ><li
	      ><a href=""
		>c2</a
		> :: <a href=""
		>Int</a
		></li
	      ></ul
	    >}</li
	  ><li class="src short"
	  ><span class="keyword"
	    >data</span
	    > <a href=""
	    >D</a
	    > = <a href=""
	    >D</a
	    > <a href=""
	    >Int</a
	    > <a href=""
	    >Int</a
	    ></li
	  ><li class="src short"
	  ><span class="keyword"
	    >newtype</span
	    > <a href=""
	    >E</a
	    > = <a href=""
	    >E</a
	    > <a href=""
	    >Int</a
	    ></li
	  ></ul
	></div
      ><div id="interface"
      ><h1
	>Documentation</h1
	><div class="top"
	><p class="src"
	  ><span class="keyword"
	    >data</span
	    > <a href="" id="t:A" class="def"
	    >A</a
	    ></p
	  ><div class="doc"
	  ><p
	    >This record is exported without its field</p
	    ></div
	  ><div class="subs constructors"
	  ><p class="caption"
	    >Constructors</p
	    ><table
	    ><tr
	      ><td class="src"
		><a href="" id="v:A" class="def"
		  >A</a
		  > <a href=""
		  >Int</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:B" class="def"
	    >B</a
	    ></p
	  ><div class="doc"
	  ><p
	    >.. with its field, but the field is named separately in the export list
 (the field isn't documented separately since it is already documented here)</p
	    ></div
	  ><div class="subs constructors"
	  ><p class="caption"
	    >Constructors</p
	    ><table
	    ><tr
	      ><td class="src"
		><a href="" id="v:B" class="def"
		  >B</a
		  ></td
		><td class="doc empty"
		>&nbsp;</td
		></tr
	      ><tr
	      ><td colspan="2"
		><div class="subs fields"
		  ><p class="caption"
		    >Fields</p
		    ><ul
		    ><li
		      ><dfn class="src"
			><a href="" id="v:b" class="def"
			  >b</a
			  > :: <a href=""
			  >Int</a
			  ></dfn
			><div class="doc empty"
			>&nbsp;</div
			></li
		      ></ul
		    ></div
		  ></td
		></tr
	      ></table
	    ></div
	  ></div
	><div class="top"
	><p class="src"
	  ><span class="keyword"
	    >data</span
	    > <a href="" id="t:C" class="def"
	    >C</a
	    ></p
	  ><div class="doc"
	  ><p
	    >.. with fields names as subordinate names in the export</p
	    ></div
	  ><div class="subs constructors"
	  ><p class="caption"
	    >Constructors</p
	    ><table
	    ><tr
	      ><td class="src"
		><a href="" id="v:C" class="def"
		  >C</a
		  ></td
		><td class="doc empty"
		>&nbsp;</td
		></tr
	      ><tr
	      ><td colspan="2"
		><div class="subs fields"
		  ><p class="caption"
		    >Fields</p
		    ><ul
		    ><li
		      ><dfn class="src"
			><a href="" id="v:c1" class="def"
			  >c1</a
			  > :: <a href=""
			  >Int</a
			  ></dfn
			><div class="doc empty"
			>&nbsp;</div
			></li
		      ><li
		      ><dfn class="src"
			><a href="" id="v:c2" class="def"
			  >c2</a
			  > :: <a href=""
			  >Int</a
			  ></dfn
			><div class="doc empty"
			>&nbsp;</div
			></li
		      ></ul
		    ></div
		  ></td
		></tr
	      ></table
	    ></div
	  ></div
	><div class="top"
	><p class="src"
	  ><span class="keyword"
	    >data</span
	    > <a href="" id="t:D" class="def"
	    >D</a
	    ></p
	  ><div class="doc"
	  ><p
	    >.. with only some of the fields exported (we can't handle this one -
 how do we render the declaration?)</p
	    ></div
	  ><div class="subs constructors"
	  ><p class="caption"
	    >Constructors</p
	    ><table
	    ><tr
	      ><td class="src"
		><a href="" id="v:D" class="def"
		  >D</a
		  > <a href=""
		  >Int</a
		  > <a href=""
		  >Int</a
		  ></td
		><td class="doc empty"
		>&nbsp;</td
		></tr
	      ></table
	    ></div
	  ></div
	><div class="top"
	><p class="src"
	  ><span class="keyword"
	    >newtype</span
	    > <a href="" id="t:E" class="def"
	    >E</a
	    ></p
	  ><div class="doc"
	  ><p
	    >a newtype with a field</p
	    ></div
	  ><div class="subs constructors"
	  ><p class="caption"
	    >Constructors</p
	    ><table
	    ><tr
	      ><td class="src"
		><a href="" id="v:E" class="def"
		  >E</a
		  > <a href=""
		  >Int</a
		  ></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
>