aboutsummaryrefslogblamecommitdiff
path: root/hypsrc-test/ref/src/Literals.html
blob: 94deb3045e4c1c694a639234bf860b65d5e30303 (plain) (tree)
1
2
3
4
5
6
7
8






                                                          






                                         
                   
            

                                  
            

                               
            
       
      
                        
             

            
                        
             

            
                        





                                            
            

                             
            
              
                          
                                          
                     
            
       
                        










                                                    
            

                             
            
              
                          


                                
                                      

            
                        
             
            
       
      
                        
             
                  



































                                              
            
       
                        


                                
                                         





                                                    
            

                             
            
              
                          


                                
                
            
              






                                         
            
              
                          


                                
                
            
              






                                         
            
              
                          


                                
                      
            
              






                                         
            
              
                          


                                
                    
            
              






                                         
            
              
                          


                                
                    
            
       
      
                         
             

            
                         
             
                  



































                                              
            
       
                         


                                
                                                 





                                                    
            

                             
            
              
                          


                                
                         

            
                         
             
            
       
      
                         
             
                  

































                                              
            
       
                         


                                
                                      





                                                    
            

                             
            







                               
            









                               
            













                               

            
                         
             
            
       
      
                         





                                            
            

                             
            







                               
            







                               
            





                               
            







                               
            





                               
            
       
                         










                                                    
            

                             
            







                               
            







                               
            





                               
            







                               
            





                               
            
       
                         
             

            
 
<html xmlns="http://www.w3.org/1999/xhtml"
><head
  ><link rel="stylesheet" type="text/css" href="style.css"
     /><script type="text/javascript" src="highlight.js"
    ></script
    ></head
  ><body
  ><pre
    ><span class="hs-pragma"
      >{-# LANGUAGE Haskell2010 #-}</span
      ><span
      >
</span
      ><span id="line-2"
      ></span
      ><span class="hs-keyword"
      >module</span
      ><span
      > </span
      ><span class="hs-identifier"
      >Literals</span
      ><span
      > </span
      ><span class="hs-keyword"
      >where</span
      ><span
      >
</span
      ><span id="line-3"
      ></span
      ><span
      >
</span
      ><span id="line-4"
      ></span
      ><span
      >
</span
      ><span id="line-5"
      ></span
      ><span class="annot"
      ><a href="Literals.html#str"
	><span class="hs-identifier hs-type"
	  >str</span
	  ></a
	></span
      ><span
      > </span
      ><span class="hs-glyph"
      >::</span
      ><span
      > </span
      ><span class="annot"
      ><span class="hs-identifier hs-type"
	>String</span
	></span
      ><span
      >
</span
      ><span id="line-6"
      ></span
      ><span id="str"
      ><span class="annot"
	><span class="annottext"
	  >str :: String
</span
	  ><a href="Literals.html#str"
	  ><span class="hs-identifier hs-var hs-var"
	    >str</span
	    ></a
	  ></span
	></span
      ><span
      > </span
      ><span class="hs-glyph"
      >=</span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>String
</span
	><span class="hs-string"
	>&quot;str literal&quot;</span
	></span
      ><span
      >
</span
      ><span id="line-7"
      ></span
      ><span
      >
</span
      ><span id="line-8"
      ></span
      ><span id=""
      ><span class="annot"
	><a href="Literals.html#num"
	  ><span class="hs-identifier hs-type"
	    >num</span
	    ></a
	  ></span
	><span
	> </span
	><span class="hs-glyph"
	>::</span
	><span
	> </span
	><span class="annot"
	><span class="hs-identifier hs-type"
	  >Num</span
	  ></span
	><span
	> </span
	><span class="annot"
	><a href="#"
	  ><span class="hs-identifier hs-type"
	    >a</span
	    ></a
	  ></span
	><span
	> </span
	><span class="hs-glyph"
	>=&gt;</span
	><span
	> </span
	><span class="annot"
	><a href="#"
	  ><span class="hs-identifier hs-type"
	    >a</span
	    ></a
	  ></span
	></span
      ><span
      >
</span
      ><span id="line-9"
      ></span
      ><span id="num"
      ><span class="annot"
	><span class="annottext"
	  >num :: forall a. Num a =&gt; a
</span
	  ><a href="Literals.html#num"
	  ><span class="hs-identifier hs-var hs-var"
	    >num</span
	    ></a
	  ></span
	></span
      ><span
      > </span
      ><span class="hs-glyph"
      >=</span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>a
</span
	><span class="hs-number"
	>0</span
	></span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>a -&gt; a -&gt; a
forall a. Num a =&gt; a -&gt; a -&gt; a
</span
	><span class="hs-operator hs-var"
	>+</span
	></span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>a
</span
	><span class="hs-number"
	>1</span
	></span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>a -&gt; a -&gt; a
forall a. Num a =&gt; a -&gt; a -&gt; a
</span
	><span class="hs-operator hs-var"
	>+</span
	></span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>a
</span
	><span class="hs-number"
	>1010011</span
	></span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>a -&gt; a -&gt; a
forall a. Num a =&gt; a -&gt; a -&gt; a
</span
	><span class="hs-operator hs-var"
	>*</span
	></span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>a
</span
	><span class="hs-number"
	>41231</span
	></span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>a -&gt; a -&gt; a
forall a. Num a =&gt; a -&gt; a -&gt; a
</span
	><span class="hs-operator hs-var"
	>+</span
	></span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>a
</span
	><span class="hs-number"
	>12131</span
	></span
      ><span
      >
</span
      ><span id="line-10"
      ></span
      ><span
      >
</span
      ><span id="line-11"
      ></span
      ><span id=""
      ><span class="annot"
	><a href="Literals.html#frac"
	  ><span class="hs-identifier hs-type"
	    >frac</span
	    ></a
	  ></span
	><span
	> </span
	><span class="hs-glyph"
	>::</span
	><span
	> </span
	><span class="annot"
	><span class="hs-identifier hs-type"
	  >Fractional</span
	  ></span
	><span
	> </span
	><span class="annot"
	><a href="#"
	  ><span class="hs-identifier hs-type"
	    >a</span
	    ></a
	  ></span
	><span
	> </span
	><span class="hs-glyph"
	>=&gt;</span
	><span
	> </span
	><span class="annot"
	><a href="#"
	  ><span class="hs-identifier hs-type"
	    >a</span
	    ></a
	  ></span
	></span
      ><span
      >
</span
      ><span id="line-12"
      ></span
      ><span id="frac"
      ><span class="annot"
	><span class="annottext"
	  >frac :: forall a. Fractional a =&gt; a
</span
	  ><a href="Literals.html#frac"
	  ><span class="hs-identifier hs-var hs-var"
	    >frac</span
	    ></a
	  ></span
	></span
      ><span
      > </span
      ><span class="hs-glyph"
      >=</span
      ><span
      > </span
      ><span class="annot"
      ><span class="annottext"
	>a
</span
	><span class="hs-number"
	>42.0000001</span
	></span
      ><span
      >
</span
      ><span id="line-13"
      ></span
      ><span
      >
</span
      ><span id="line-14"
      ></span
      ><span id=""
      ><span class="annot"
	><a href="Literals.html#list"
	  ><span class="hs-identifier hs-type"
	    >list</span
	    ></a
	  ></span
	><span
	> </span
	><span class="hs-glyph"
	>::</span
	><span
	> </span
	><span class="hs-special"
	>[</span
	><span class="hs-special"
	>[</span
	><span class="hs-special"
	>[</span
	><span class="hs-special"
	>[</span
	><span class="annot"
	><a href="#"
	  ><span class="hs-identifier hs-type"
	    >a</span
	    ></a
	  ></span
	><span class="hs-special"
	>]</span
	><span class="hs-special"
	>]</span
	><span class="hs-special"
	>]</span
	><span class="hs-special"
	>]</span
	></span
      ><span
      >
</span
      ><span id="line-15"
      ></span
      ><span id="list"
      ><span class="annot"
	><span class="annottext"
	  >list :: forall a. [[[[a]]]]
</span
	  ><a href="Literals.html#list"
	  ><span class="hs-identifier hs-var hs-var"
	    >list</span
	    ></a
	  ></span
	></span
      ><span
      > </span
      ><span class="hs-glyph"
      >=</span
      ><span
      > </span
      ><span class="hs-special"
      >[</span
      ><span class="hs-special"
      >[</span
      ><span class="hs-special"
      >]</span
      ><span class="hs-special"
      >,</span
      ><span
      > </span
      ><span class="hs-special"
      >[</span
      ><span class="hs-special"
      >[</span
      ><span class="hs-special"
      >]</span
      ><span class="hs-special"
      >]</span
      ><span class="hs-special"
      >,</span
      ><span
      > </span
      ><span class="hs-special"
      >[</span
      ><span class="hs-special"
      >[</span
      ><span class="hs-special"
      >[</span
      ><span class="hs-special"
      >]</span
      ><span class="hs-special"
      >]</span
      ><span class="hs-special"
      >]</span
      ><span class="hs-special"
      >]</span
      ><span
      >
</span
      ><span id="line-16"
      ></span
      ><span
      >
</span
      ><span id="line-17"
      ></span
      ><span class="annot"
      ><a href="Literals.html#pair"
	><span class="hs-identifier hs-type"
	  >pair</span
	  ></a
	></span
      ><span
      > </span
      ><span class="hs-glyph"
      >::</span
      ><span
      > </span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >,</span
      ><span
      > </span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >,</span
      ><span
      > </span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >,</span
      ><span
      > </span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >,</span
      ><span
      > </span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >)</span
      ><span
      >
</span
      ><span id="line-18"
      ></span
      ><span id="pair"
      ><span class="annot"
	><span class="annottext"
	  >pair :: ((), ((), (), ()), ())
</span
	  ><a href="Literals.html#pair"
	  ><span class="hs-identifier hs-var hs-var"
	    >pair</span
	    ></a
	  ></span
	></span
      ><span
      > </span
      ><span class="hs-glyph"
      >=</span
      ><span
      > </span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >,</span
      ><span
      > </span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >,</span
      ><span
      > </span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >,</span
      ><span
      > </span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >,</span
      ><span
      > </span
      ><span class="hs-special"
      >(</span
      ><span class="hs-special"
      >)</span
      ><span class="hs-special"
      >)</span
      ><span
      >
</span
      ><span id="line-19"
      ></span
      ></pre
    ></body
  ></html
>