<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Scala exercise</title>
	<atom:link href="http://blog.tmorris.net/scala-exercise/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tmorris.net/scala-exercise/</link>
	<description>The weblog of Tony Morris</description>
	<pubDate>Sat, 04 Feb 2012 12:22:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: oxbow</title>
		<link>http://blog.tmorris.net/scala-exercise/#comment-37830</link>
		<dc:creator>oxbow</dc:creator>
		<pubDate>Thu, 25 Feb 2010 18:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=649#comment-37830</guid>
		<description>Well, that was easier than I was expecting</description>
		<content:encoded><![CDATA[<p>Well, that was easier than I was expecting</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Morris</title>
		<link>http://blog.tmorris.net/scala-exercise/#comment-37196</link>
		<dc:creator>Tony Morris</dc:creator>
		<pubDate>Thu, 11 Feb 2010 08:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=649#comment-37196</guid>
		<description>Hi Arnaud,
I compiled against Scala 2.8.0 which will make quite a difference.</description>
		<content:encoded><![CDATA[<p>Hi Arnaud,<br />
I compiled against Scala 2.8.0 which will make quite a difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnaud Bailly</title>
		<link>http://blog.tmorris.net/scala-exercise/#comment-37189</link>
		<dc:creator>Arnaud Bailly</dc:creator>
		<pubDate>Thu, 11 Feb 2010 06:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=649#comment-37189</guid>
		<description>Thanks for the exercises. I tried to solve this one but got a compilation error:

&lt;pre&gt;
scalac -Xprint:typer -explaintypes exercise.scala; scala tony.Main
exercise.scala:62: error: inferred the kinds of the type arguments (Array[String],String) do not conform to the expected kinds of the type parameters (type F,type A).
Array[String]'s type parameters do not match type F's expected parameters: class Array has one type parameter, but type F has one
    val i = minimum(args, StringOrder, ArrayFoldable)
            ^
exercise.scala:62: error: type mismatch;
 found   : java.lang.Object with tony.Foldable[Array]
 required: tony.Foldable[Array[String]]
    val i = minimum(args, StringOrder, ArrayFoldable)
                                       ^
java.lang.Object with tony.Foldable[Array] &#60; tony.Foldable[Array[String]]?
  java.lang.Object &#60; tony.Foldable[Array[String]]?
     &#60; tony.Foldable[Array[String]]?
    false
  false
  tony.Foldable[Array] &#60; tony.Foldable[Array[String]]?
    Array[String] &#60; Array?
    false
  false
false
&lt;/pre&gt;

What am I doing wrong ? Note that I am using scala 2.7.7 on Linux.

Best regards,
Arnaud</description>
		<content:encoded><![CDATA[<p>Thanks for the exercises. I tried to solve this one but got a compilation error:</p>
<pre>
scalac -Xprint:typer -explaintypes exercise.scala; scala tony.Main
exercise.scala:62: error: inferred the kinds of the type arguments (Array[String],String) do not conform to the expected kinds of the type parameters (type F,type A).
Array[String]'s type parameters do not match type F's expected parameters: class Array has one type parameter, but type F has one
    val i = minimum(args, StringOrder, ArrayFoldable)
            ^
exercise.scala:62: error: type mismatch;
 found   : java.lang.Object with tony.Foldable[Array]
 required: tony.Foldable[Array[String]]
    val i = minimum(args, StringOrder, ArrayFoldable)
                                       ^
java.lang.Object with tony.Foldable[Array] &lt; tony.Foldable[Array[String]]?
  java.lang.Object &lt; tony.Foldable[Array[String]]?
     &lt; tony.Foldable[Array[String]]?
    false
  false
  tony.Foldable[Array] &lt; tony.Foldable[Array[String]]?
    Array[String] &lt; Array?
    false
  false
false
</pre>
<p>What am I doing wrong ? Note that I am using scala 2.7.7 on Linux.</p>
<p>Best regards,<br />
Arnaud</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Shaw</title>
		<link>http://blog.tmorris.net/scala-exercise/#comment-37064</link>
		<dc:creator>Steven Shaw</dc:creator>
		<pubDate>Sun, 07 Feb 2010 00:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=649#comment-37064</guid>
		<description>Thanks for making this an easy one :)</description>
		<content:encoded><![CDATA[<p>Thanks for making this an easy one <img src='http://blog.tmorris.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>

