[Pkg-haskell-commits] darcs: haskell-hoogle: Update pre-shipped keyword.txt file

Iustin Pop iustin at debian.org
Sun Sep 21 19:23:44 UTC 2014


Sun Sep 21 18:50:19 UTC 2014  Iustin Pop <iustin at debian.org>
  * Update pre-shipped keyword.txt file
  
  Previously, 'keyword.txt' was a simple dump of the
  http://www.haskell.org/haskellwiki/Keywords page, and hoogle was converting it
  (in update-hoogle) to the .txt/.hoo format. The new method which doesn't use
  'data' anymore needs a pre-generated '.txt' file, which hoogle is able to
  convert to .hoo.
  
  This file has been taken from a "full" (i.e. using "hoogle data") database, so
  its contents is frozen both in time (2014-09-21) and in the version of hoogle
  used (4.2.33).

    M ./copyright +19
    M ./files_hoogle/keyword.txt -821 +1106

Sun Sep 21 18:50:19 UTC 2014  Iustin Pop <iustin at debian.org>
  * Update pre-shipped keyword.txt file
  
  Previously, 'keyword.txt' was a simple dump of the
  http://www.haskell.org/haskellwiki/Keywords page, and hoogle was converting it
  (in update-hoogle) to the .txt/.hoo format. The new method which doesn't use
  'data' anymore needs a pre-generated '.txt' file, which hoogle is able to
  convert to .hoo.
  
  This file has been taken from a "full" (i.e. using "hoogle data") database, so
  its contents is frozen both in time (2014-09-21) and in the version of hoogle
  used (4.2.33).
diff -rN -u old-haskell-hoogle/copyright new-haskell-hoogle/copyright
--- old-haskell-hoogle/copyright	2014-09-21 19:23:44.122273949 +0000
+++ new-haskell-hoogle/copyright	2014-09-21 19:23:44.126273949 +0000
@@ -29,6 +29,10 @@
  2012-2013 Joachim Breitner
 License: hoogle license
 
+Files: debian/files_hoogle/keyword.txt
+Copyright: Haskell Wiki contributors
+License: HaskellWiki
+
 License: hoogle license
  All rights reserved.
  .
@@ -79,3 +83,18 @@
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+License: HaskellWiki
+ Permission is hereby granted, free of charge, to any person obtaining
+ this work (the "Work"), to deal in the Work without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Work, and
+ to permit persons to whom the Work is furnished to do so.
+ .
+ THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS IN THE WORK.
diff -rN -u old-haskell-hoogle/files_hoogle/keyword.txt new-haskell-hoogle/files_hoogle/keyword.txt
--- old-haskell-hoogle/files_hoogle/keyword.txt	2014-09-21 19:23:44.122273949 +0000
+++ new-haskell-hoogle/files_hoogle/keyword.txt	2014-09-21 19:23:44.126273949 +0000
@@ -1,831 +1,1116 @@
-<!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" xml:lang="en" lang="en" dir="ltr">
-	<head>
-		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-				<meta name="keywords" content="Keywords,Abstract syntax tree,Arrow notation,Constructor,Cunning Newtype Deriving,Foreign Function Interface,Functional dependencies,GADT,Hoogle,Implicit parameters,Import" />
-		<link rel="shortcut icon" href="/favicon.ico" />
-		<link rel="search" type="application/opensearchdescription+xml" href="/haskellwiki/opensearch_desc.php" title="HaskellWiki (English)" />
-		<link title="Creative Commons" type="application/rdf+xml" href="/haskellwiki/index.php?title=Keywords&action=creativecommons" rel="meta" />
-		<link rel="copyright" href="/haskellwiki/HaskellWiki:Copyrights" />
-<link rel="alternate" type="application/rss+xml" title="HaskellWiki RSS Feed" href="http://www.haskell.org/haskellwiki/index.php?title=Special:Recentchanges&feed=rss" />
-<link rel="alternate" type="application/atom+xml" title="HaskellWiki Atom Feed" href="http://www.haskell.org/haskellwiki/index.php?title=Special:Recentchanges&feed=atom" />
-		<title>Keywords - HaskellWiki</title>
-		<style type="text/css" media="screen, projection">/*<![CDATA[*/
-			@import "/wikistatic/skins//common/shared.css?116";
-			@import "/wikistatic/skins//hawiki/main.css?116";
-		/*]]>*/</style>
-		<link rel="stylesheet" type="text/css" media="print" href="/wikistatic/skins//common/commonPrint.css?116" />
-		<!--[if lt IE 5.5000]><style type="text/css">@import "/wikistatic/skins//hawiki/IE50Fixes.css?116";</style><![endif]-->
-		<!--[if IE 5.5000]><style type="text/css">@import "/wikistatic/skins//hawiki/IE55Fixes.css?116";</style><![endif]-->
-		<!--[if IE 6]><style type="text/css">@import "/wikistatic/skins//hawiki/IE60Fixes.css?116";</style><![endif]-->
-		<!--[if IE 7]><style type="text/css">@import "/wikistatic/skins//hawiki/IE70Fixes.css?116";</style><![endif]-->
-		<!--[if lte IE 7]><script type="text/javascript" src="/wikistatic/skins//hawiki/IEFixes.js?116"></script>
-		<meta http-equiv="imagetoolbar" content="no" /><![endif]-->
-                                                <script type="text/javascript">
-                        var isMSIE55 = (window.showModalDialog && window.clipboardData && window.createPopup); /*alert("test: " + isMSIE55);*/</script>
-
-		<script type= "text/javascript">/*<![CDATA[*/
-var skin = "hawiki";
-var stylepath = "/wikistatic/skins/";
-var wgArticlePath = "/haskellwiki/$1";
-var wgScriptPath = "/haskellwiki";
-var wgScript = "/haskellwiki/index.php";
-var wgServer = "http://www.haskell.org";
-var wgCanonicalNamespace = "";
-var wgCanonicalSpecialPageName = false;
-var wgNamespaceNumber = 0;
-var wgPageName = "Keywords";
-var wgTitle = "Keywords";
-var wgAction = "view";
-var wgRestrictionEdit = [];
-var wgRestrictionMove = [];
-var wgArticleId = "1373";
-var wgIsArticle = true;
-var wgUserName = null;
-var wgUserGroups = null;
-var wgUserLanguage = "en";
-var wgContentLanguage = "en";
-var wgBreakFrames = false;
-var wgCurRevisionId = "56198";
-var wgVersion = "1.12.0";
-var wgEnableAPI = true;
-var wgEnableWriteAPI = false;
-/*]]>*/</script>
-
-		<script type="text/javascript" src="/wikistatic/skins//common/wikibits.js?116"><!-- wikibits js --></script>
-		<!-- Head Scripts -->
-		<script type="text/javascript" src="/wikistatic/skins//common/ajax.js?116"></script>
-<style type="text/css">/*<![CDATA[*/
-.source-haskell {line-height: normal;}
-.source-haskell li {line-height: normal;}
-/**
- * GeSHi Dynamically Generated Stylesheet
- * --------------------------------------
- * Dynamically generated stylesheet for haskell
- * CSS class: source-haskell, CSS id: 
- * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
- * (http://qbnz.com/highlighter/ and http://geshi.org/)
- * --------------------------------------
- */
-.source-haskell .de1, .source-haskell .de2 {font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;}
-.source-haskell  {}
-.source-haskell .head {}
-.source-haskell .foot {}
-.source-haskell .imp {font-weight: bold; color: red;}
-.source-haskell li, .source-haskell li.li1 {font-weight: normal;}
-.source-haskell li.li2 {font-weight: bold;}
-.source-haskell .kw1 {color: #06c; font-weight: bold;}
-.source-haskell .kw2 {color: #06c; font-weight: bold;}
-.source-haskell .kw3 {font-weight: bold;}
-.source-haskell .kw4 {color: #cccc00; font-weight: bold;}
-.source-haskell .kw5 {color: maroon;}
-.source-haskell .co1 {color: #5d478b; font-style: italic;}
-.source-haskell .co2 {color: #339933; font-weight: bold;}
-.source-haskell .coMULTI {color: #5d478b; font-style: italic;}
-.source-haskell .es0 {background-color: #3cb371; font-weight: bold;}
-.source-haskell .br0 {color: green;}
-.source-haskell .sy0 {color: #339933; font-weight: bold;}
-.source-haskell .st0 {background-color: #3cb371;}
-.source-haskell .nu0 {color: red;}
-.source-haskell .me1 {color: #060;}
-.source-haskell .ln-xtra, .source-haskell li.ln-xtra, .source-haskell div.ln-xtra {color: #cc0; background-color: #ffc;}
-
-/*]]>*/
-</style>
-<style type="text/css">/*<![CDATA[*/
- at import "/haskellwiki/index.php?title=MediaWiki:Geshi.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";
-/*]]>*/
-</style>		<script type="text/javascript" src="/haskellwiki/index.php?title=-&action=raw&gen=js&useskin=hawiki"><!-- site js --></script>
-		<style type="text/css">/*<![CDATA[*/
- at import "/haskellwiki/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";
- at import "/haskellwiki/index.php?title=MediaWiki:Hawiki.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";
- at import "/haskellwiki/index.php?title=-&action=raw&gen=css&maxage=18000&useskin=hawiki";
-/*]]>*/</style>
-	</head>
-<body class="mediawiki ltr page-Keywords ">
-   <div id="topbar" class="noprint">
-	<div class="portlet noprint" id="p-personal">
-		<h5>Personal tools</h5>
-		<div class="pBody">
-			<ul><li><a class="homebutton" href="/haskellwiki/Haskell">Home</a></li>
-				<li id="pt-login"><a href="/haskellwiki/index.php?title=Special:Userlogin&returnto=Keywords" title="You are encouraged to log in, it is not mandatory however. [o]" accesskey="o">Log in / create account</a></li>
-			</ul>
-		</div>
-	</div>
-        	  <div id="p-search">
-	    <div id="searchBody" class="pBody">
-	       <form action="/haskellwiki/index.php" id="searchform"><div>
-	          <input type='hidden' name="title" value=""/>
-	          <input id="searchInput" name="search" type="text" title="Search HaskellWiki [f]" accesskey="f" value="" />
-				<input type='submit' name="go" class="searchButton" id="searchGoButton"	value="Go" title="Go to a page with this exact name if exists" /> 
-				<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search the pages for this text" />
-
-	         </div></form>
-	    </div>
-	  </div>
-   </div>
-	<div id="globalWrapper">
-	<div class="portlet" id="p-logo">
-		<a style="background-image: url(/wikistatic/haskellwiki_logo.png);" href="/haskellwiki/Haskell" title="Main Page"></a>
-	</div>
-	<div id="column-content">
-        <div id="notice-area" class="noprint">
-        <!-- ?php $this->data['sitenotice'] = 'This is a test instance.  Do not edit, your changes will be lost.'; ? -->
-			        </div>
-        <div id="content-wrapper">
-	<div id="p-cactions" class="portlet noprint">
-		<h5>Views</h5>
-		<div class="pBody">
-			<ul>
-	
-				 <li id="ca-nstab-main" class="selected"><a href="/haskellwiki/Keywords" title="View the content page [c]" accesskey="c">Page</a></li>
-				 <li id="ca-talk" class="new"><a href="/haskellwiki/index.php?title=Talk:Keywords&action=edit" title="Discussion about the content page [t]" accesskey="t">Discussion</a></li>
-				 <li id="ca-viewsource"><a href="/haskellwiki/index.php?title=Keywords&action=edit" title="This page is protected. You can view its source. [e]" accesskey="e">View source</a></li>
-				 <li id="ca-history"><a href="/haskellwiki/index.php?title=Keywords&action=history" title="Past versions of this page. [h]" accesskey="h">History</a></li>			</ul>
-		</div>
-	</div>
-                        <div id="content">
-		<a name="top" id="top"></a>
-                        <h1 id="firstHeading" class="firstHeading">Keywords</h1>
-		<div id="bodyContent">
-			<h3 id="siteSub">From HaskellWiki</h3>
-			<div id="contentSub"></div>
-			<div id="jump-to-nav">Jump to: <a href="#column-one">navigation</a>, <a href="#searchInput">search</a></div>			<!-- start content -->
-			<p>This page lists all Haskell keywords, feel free to edit. <a href="/haskellwiki/Hoogle" title="Hoogle">Hoogle</a> searches will return results from this page. Please respect the Anchor macros.
-</p><p>For additional information you might want to look at <a href="http://www.haskell.org/onlinereport/haskell2010/" class="external text" title="http://www.haskell.org/onlinereport/haskell2010/" rel="nofollow">the Haskell 2010 report</a>.
-</p>
-<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
-<ul>
-<li class="toclevel-1"><a href="#.21"><span class="tocnumber">1</span> <span class="toctext">!</span></a></li>
-<li class="toclevel-1"><a href="#.27"><span class="tocnumber">2</span> <span class="toctext">'</span></a></li>
-<li class="toclevel-1"><a href="#.27.27"><span class="tocnumber">3</span> <span class="toctext">''</span></a></li>
-<li class="toclevel-1"><a href="#-"><span class="tocnumber">4</span> <span class="toctext">-</span></a></li>
-<li class="toclevel-1"><a href="#--"><span class="tocnumber">5</span> <span class="toctext">--</span></a></li>
-<li class="toclevel-1"><a href="#-.3C"><span class="tocnumber">6</span> <span class="toctext">-<</span></a></li>
-<li class="toclevel-1"><a href="#-.3C.3C"><span class="tocnumber">7</span> <span class="toctext">-<<</span></a></li>
-<li class="toclevel-1"><a href="#-.3E"><span class="tocnumber">8</span> <span class="toctext">-></span></a></li>
-<li class="toclevel-1"><a href="#::"><span class="tocnumber">9</span> <span class="toctext">::</span></a></li>
-<li class="toclevel-1"><a href="#.3B"><span class="tocnumber">10</span> <span class="toctext">;</span></a></li>
-<li class="toclevel-1"><a href="#.3C-"><span class="tocnumber">11</span> <span class="toctext"><-</span></a></li>
-<li class="toclevel-1"><a href="#.3D"><span class="tocnumber">12</span> <span class="toctext">=</span></a></li>
-<li class="toclevel-1"><a href="#.3D.3E"><span class="tocnumber">13</span> <span class="toctext">=></span></a></li>
-<li class="toclevel-1"><a href="#.3E"><span class="tocnumber">14</span> <span class="toctext">></span></a></li>
-<li class="toclevel-1"><a href="#.3F"><span class="tocnumber">15</span> <span class="toctext">?</span></a></li>
-<li class="toclevel-1"><a href="#.23"><span class="tocnumber">16</span> <span class="toctext">#</span></a></li>
-<li class="toclevel-1"><a href="#.2A"><span class="tocnumber">17</span> <span class="toctext">*</span></a></li>
-<li class="toclevel-1"><a href="#.40"><span class="tocnumber">18</span> <span class="toctext">@</span></a></li>
-<li class="toclevel-1"><a href="#.5B.7C.2C_.7C.5D"><span class="tocnumber">19</span> <span class="toctext">[|, |]</span></a></li>
-<li class="toclevel-1"><a href="#.5C"><span class="tocnumber">20</span> <span class="toctext">\</span></a></li>
-<li class="toclevel-1"><a href="#_"><span class="tocnumber">21</span> <span class="toctext">_</span></a></li>
-<li class="toclevel-1"><a href="#.60"><span class="tocnumber">22</span> <span class="toctext">`</span></a></li>
-<li class="toclevel-1"><a href="#.7B.2C_.7D"><span class="tocnumber">23</span> <span class="toctext">{, }</span></a></li>
-<li class="toclevel-1"><a href="#.7B-.2C_-.7D"><span class="tocnumber">24</span> <span class="toctext">{-, -}</span></a></li>
-<li class="toclevel-1"><a href="#.7C"><span class="tocnumber">25</span> <span class="toctext">|</span></a></li>
-<li class="toclevel-1"><a href="#.7E"><span class="tocnumber">26</span> <span class="toctext">~</span></a></li>
-<li class="toclevel-1"><a href="#as"><span class="tocnumber">27</span> <span class="toctext">as</span></a></li>
-<li class="toclevel-1"><a href="#case.2C_of"><span class="tocnumber">28</span> <span class="toctext">case, of</span></a></li>
-<li class="toclevel-1"><a href="#class"><span class="tocnumber">29</span> <span class="toctext">class</span></a></li>
-<li class="toclevel-1"><a href="#data"><span class="tocnumber">30</span> <span class="toctext">data</span></a></li>
-<li class="toclevel-1"><a href="#data_family"><span class="tocnumber">31</span> <span class="toctext">data family</span></a></li>
-<li class="toclevel-1"><a href="#data_instance"><span class="tocnumber">32</span> <span class="toctext">data instance</span></a></li>
-<li class="toclevel-1"><a href="#default"><span class="tocnumber">33</span> <span class="toctext">default</span></a></li>
-<li class="toclevel-1"><a href="#deriving"><span class="tocnumber">34</span> <span class="toctext">deriving</span></a></li>
-<li class="toclevel-1"><a href="#deriving_instance"><span class="tocnumber">35</span> <span class="toctext">deriving instance</span></a></li>
-<li class="toclevel-1"><a href="#do"><span class="tocnumber">36</span> <span class="toctext">do</span></a></li>
-<li class="toclevel-1"><a href="#forall"><span class="tocnumber">37</span> <span class="toctext">forall</span></a></li>
-<li class="toclevel-1"><a href="#foreign"><span class="tocnumber">38</span> <span class="toctext">foreign</span></a></li>
-<li class="toclevel-1"><a href="#hiding"><span class="tocnumber">39</span> <span class="toctext">hiding</span></a></li>
-<li class="toclevel-1"><a href="#if.2C_then.2C_else"><span class="tocnumber">40</span> <span class="toctext">if, then, else</span></a></li>
-<li class="toclevel-1"><a href="#import"><span class="tocnumber">41</span> <span class="toctext">import</span></a></li>
-<li class="toclevel-1"><a href="#infix.2C_infixl.2C_infixr"><span class="tocnumber">42</span> <span class="toctext">infix, infixl, infixr</span></a></li>
-<li class="toclevel-1"><a href="#instance"><span class="tocnumber">43</span> <span class="toctext">instance</span></a></li>
-<li class="toclevel-1"><a href="#let.2C_in"><span class="tocnumber">44</span> <span class="toctext">let, in</span></a></li>
-<li class="toclevel-1"><a href="#mdo"><span class="tocnumber">45</span> <span class="toctext">mdo</span></a></li>
-<li class="toclevel-1"><a href="#module"><span class="tocnumber">46</span> <span class="toctext">module</span></a></li>
-<li class="toclevel-1"><a href="#newtype"><span class="tocnumber">47</span> <span class="toctext">newtype</span></a></li>
-<li class="toclevel-1"><a href="#proc"><span class="tocnumber">48</span> <span class="toctext">proc</span></a></li>
-<li class="toclevel-1"><a href="#qualified"><span class="tocnumber">49</span> <span class="toctext">qualified</span></a></li>
-<li class="toclevel-1"><a href="#rec"><span class="tocnumber">50</span> <span class="toctext">rec</span></a></li>
-<li class="toclevel-1"><a href="#type"><span class="tocnumber">51</span> <span class="toctext">type</span></a></li>
-<li class="toclevel-1"><a href="#type_family"><span class="tocnumber">52</span> <span class="toctext">type family</span></a></li>
-<li class="toclevel-1"><a href="#type_instance"><span class="tocnumber">53</span> <span class="toctext">type instance</span></a></li>
-<li class="toclevel-1"><a href="#where"><span class="tocnumber">54</span> <span class="toctext">where</span></a></li>
-</ul>
-</td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
-<a name=".21"></a><h2> <span class="mw-headline">1  ! </span></h2>
-<p>Whenever a data <a href="/haskellwiki/Constructor" title="Constructor">constructor</a> is applied, each argument to the
-constructor is evaluated if and only if the corresponding type in the
-algebraic data<a href="/haskellwiki/Type" title="Type">type</a> declaration has a strictness flag, denoted by an
-exclamation point. For example:
-</p>
-<div dir="ltr" style="text-align: left;"><pre class="source-haskell"><span class="kw1">data</span> STList a 
-         <span class="sy0">=</span> STCons a <span class="sy0">!</span><span class="br0">(</span>STList a<span class="br0">)</span>  <span class="co1">-- the second argument to STCons will be </span>
-                                 <span class="co1">-- evaluated before STCons is applied</span>
-         <span class="sy0">|</span> STNil</pre></div>
-<p>to illustrate the difference between strict versus lazy constructor
-application, consider the following:
-</p>
-<div dir="ltr" style="text-align: left;"><pre class="source-haskell">stList <span class="sy0">=</span> STCons <span class="nu0">1</span> <span class="kw3">undefined</span>
- lzList <span class="sy0">=</span> <span class="br0">(</span>:<span class="br0">)</span>    <span class="nu0">1</span> <span class="kw3">undefined</span>
- stHead <span class="br0">(</span>STCons h <span class="sy0">_</span><span class="br0">)</span> <span class="sy0">=</span> h <span class="co1">-- this evaluates to undefined when applied to stList</span>
- lzHead <span class="br0">(</span>h[...incomplete...]



More information about the Pkg-haskell-commits mailing list