<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - Haskell question</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - Haskell question</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Fri, 24 May 2013 00:44:03 GMT</pubDate>
	<lastBuildDate>Fri, 24 May 2013 00:44:03 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>3</c9:totalResults>
	<c9:pageCount>-3</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - Haskell question</title>
		<description><![CDATA[<p>Can somebody explain to me why the following works:</p>
<p><br>
add2 = foldr (\ x xs -&gt; x &#43; 2 : xs) []</p>
<p>&nbsp;</p>
<p>but this does not:</p>
<p>appendTest = foldr(\ x xs -&gt; x &#43;&#43; &quot;Test&quot; : xs) []</p>
<p>&nbsp;</p>
<p>I get a type mismatch between [[[Char]]] and [[Char]] when I call </p>
<p>appendTest [&quot;one&quot;, &quot;two&quot;]</p>
<p>&nbsp;</p>
<p>I need to do it this way:</p>
<p>&nbsp;</p>
<p>appendTest = foldr(\ x xs -&gt; (\ x -&gt; x&#43;&#43; &quot;Test&quot;) : xs) []</p>
<p>&nbsp;</p>
<p>I am not sure why though, especially since the Int example works. Sure, String is [Char], but I can't see why the first version of appendTest expects a [[[Char]]] instead of a [[Char]].</p>
<p>&nbsp;</p>
<p>Thanks a lot!</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/519580-Haskell-question/519580#519580</link>
		<pubDate>Sun, 10 Jan 2010 10:11:18 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/519580-Haskell-question/519580#519580</guid>
		<dc:creator>trifonius</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/trifonius/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Haskell question</title>
		<description><![CDATA[<p>Have you tried reformulating as separate functions rather than &quot;trying to be smart on the first go&quot; with the embedded lambda expression? When I'm doing Haskell it helps to identify problem areas.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/519580-Haskell-question/22b8fa17d0a84538aa439deb000b5faf#22b8fa17d0a84538aa439deb000b5faf</link>
		<pubDate>Sun, 10 Jan 2010 12:32:18 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/519580-Haskell-question/22b8fa17d0a84538aa439deb000b5faf#22b8fa17d0a84538aa439deb000b5faf</guid>
		<dc:creator>W3bbo</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/W3bbo/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Haskell question</title>
		<description><![CDATA[<p>it may be due to &#43; binding with higher precedence compared to : in comparison with &#43;&#43;</p>
<p>placing brackets like should work (x &#43;&#43; &quot;Test&quot;)</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/519580-Haskell-question/a6fd8659a43c406380af9deb000b5ff7#a6fd8659a43c406380af9deb000b5ff7</link>
		<pubDate>Tue, 02 Feb 2010 15:57:02 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/519580-Haskell-question/a6fd8659a43c406380af9deb000b5ff7#a6fd8659a43c406380af9deb000b5ff7</guid>
		<dc:creator>Amar Nath Satrawala</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/A N Satrawala/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>