<?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: Type-safe Scala sequence comprehensions</title>
	<atom:link href="http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/</link>
	<description>The weblog of Tony Morris</description>
	<pubDate>Tue, 06 Jan 2009 12:42:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Tony Morris</title>
		<link>http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/#comment-1698</link>
		<dc:creator>Tony Morris</dc:creator>
		<pubDate>Fri, 07 Dec 2007 07:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/#comment-1698</guid>
		<description>Hi Oscar,
The example works for Scala 2.5.1, so I'll have to update it for 2.6.0. The correction is actually a much more concise articulation of the intention. In the meantime, you might try replacing all occurrences of c[a] in those cases that the compiler complains with just c.</description>
		<content:encoded><![CDATA[<p>Hi Oscar,<br />
The example works for Scala 2.5.1, so I&#8217;ll have to update it for 2.6.0. The correction is actually a much more concise articulation of the intention. In the meantime, you might try replacing all occurrences of c[a] in those cases that the compiler complains with just c.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar Picasso</title>
		<link>http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/#comment-1697</link>
		<dc:creator>Oscar Picasso</dc:creator>
		<pubDate>Fri, 07 Dec 2007 03:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/#comment-1697</guid>
		<description>Sorry for the bad formatting, it seems that on submission formatting tags don't work.

Maybe this is more readable:

type Comprehension[c[_], a] = Functor[c[a], a] with Monad[c[a], a] with Filter[c[a], a]

The compiler complains with:c[a] takes no type parameters, expected: one</description>
		<content:encoded><![CDATA[<p>Sorry for the bad formatting, it seems that on submission formatting tags don&#8217;t work.</p>
<p>Maybe this is more readable:</p>
<p>type Comprehension[c[_], a] = Functor[c[a], a] with Monad[c[a], a] with Filter[c[a], a]</p>
<p>The compiler complains with:c[a] takes no type parameters, expected: one</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar Picasso</title>
		<link>http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/#comment-1696</link>
		<dc:creator>Oscar Picasso</dc:creator>
		<pubDate>Fri, 07 Dec 2007 02:56:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/#comment-1696</guid>
		<description>I tried your example but for the line:
type Comprehension[c[_], a] = Functor[c[a], a] with Monad[c[a], a] with Filter[c[a], a]The compiler complains with:c[a] takes no type parameters, expected: one</description>
		<content:encoded><![CDATA[<p>I tried your example but for the line:<br />
type Comprehension[c[_], a] = Functor[c[a], a] with Monad[c[a], a] with Filter[c[a], a]The compiler complains with:c[a] takes no type parameters, expected: one</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Morris</title>
		<link>http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/#comment-1695</link>
		<dc:creator>Tony Morris</dc:creator>
		<pubDate>Thu, 13 Sep 2007 22:23:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/#comment-1695</guid>
		<description>G'day Henry,
Yes I find it stresses Scala's type inferencing as well, so I have to manually help it along. A good example above is passing the type parameters to foreach explicitly; without them, the code would not compile.</description>
		<content:encoded><![CDATA[<p>G&#8217;day Henry,<br />
Yes I find it stresses Scala&#8217;s type inferencing as well, so I have to manually help it along. A good example above is passing the type parameters to foreach explicitly; without them, the code would not compile.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Ware</title>
		<link>http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/#comment-1694</link>
		<dc:creator>Henry Ware</dc:creator>
		<pubDate>Thu, 13 Sep 2007 18:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/type-safe-scala-sequence-comprehensions/#comment-1694</guid>
		<description>Nice post about an important topic.

I suspect the documentation is dated.  Higher Order Kinds were just added this summer with 2.5.   The crew have written a paper which discusses map, flatMap and filter; it's at Adriaan Moors' site: http://www.cs.kuleuven.be/~adriaan/files/higher.pdf

Your approach is more Haskellish than theirs. in an interesting way.

I haven't tried your approach (yet), but I find things like this stress Scala's type inference system... sometimes I've been unable to do what I want without losing type information.</description>
		<content:encoded><![CDATA[<p>Nice post about an important topic.</p>
<p>I suspect the documentation is dated.  Higher Order Kinds were just added this summer with 2.5.   The crew have written a paper which discusses map, flatMap and filter; it&#8217;s at Adriaan Moors&#8217; site: <a href="http://www.cs.kuleuven.be/~adriaan/files/higher.pdf" onclick="javascript:pageTracker._trackPageview('/outbound/comment/www.cs.kuleuven.be');" rel="nofollow">http://www.cs.kuleuven.be/~adriaan/files/higher.pdf</a></p>
<p>Your approach is more Haskellish than theirs. in an interesting way.</p>
<p>I haven&#8217;t tried your approach (yet), but I find things like this stress Scala&#8217;s type inference system&#8230; sometimes I&#8217;ve been unable to do what I want without losing type information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
