GHC: Ticket Query
http://ghc.haskell.org/trac/ghc/query?component=libraries+(other)&milestone=6.10.2&group=status&order=priority
The Glasgow Haskell Compileren-USGHChttp://ghc.haskell.org/trac/ghc/chrome/site/ghc_logo.png
http://ghc.haskell.org/trac/ghc/query?component=libraries+(other)&milestone=6.10.2&group=status&order=priority
Trac 1.0.1
http://ghc.haskell.org/trac/ghc/ticket/2980
http://ghc.haskell.org/trac/ghc/ticket/2980#2980: Data.Generics reports wrong package?Mon, 26 Jan 2009 14:42:41 GMTMartijn<p>
On a Windows XP machine, importing the Data.Generics packages gives the following confusing error message:
</p>
<blockquote>
<p>
Could not find module `Data.Generics':
</p>
<blockquote>
<p>
it is a member of package base-3.0.3.0, which is hidden
</p>
</blockquote>
</blockquote>
<p>
After adding the package 'syb' to the dependencies, everything went fine. The documentation of Generics also states base as its package.
</p>
Resultshttp://ghc.haskell.org/trac/ghc/ticket/2980#changelog
http://ghc.haskell.org/trac/ghc/ticket/3002
http://ghc.haskell.org/trac/ghc/ticket/3002#3002: Documentation for Data.Map.unionWithKey makes reference to "new" and "old" values which have no meaning in a union.Wed, 04 Feb 2009 11:48:02 GMTguest<p>
The example given for unionWithKey uses rather odd names "new_value" and "old_value" for the values in the two maps. Perhaps more appropriate names would be leftValue and rightValue. This has been commented on in #haskell that where the values come from is not clear.
</p>
<pre class="wiki">let f key new_value old_value = (show key) ++ ":" ++ new_value ++ "|" ++ old_value
unionWithKey f (fromList [(5, "a"), (3, "b")]) (fromList [(5, "A"), (7, "C")]) == fromList [(3, "b"), (5, "5:a|A"), (7, "C")]
</pre>Resultshttp://ghc.haskell.org/trac/ghc/ticket/3002#changelog