<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sun May 19 15:01:03 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/ALGOM-3/ALGOM-3.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[ALGOM-3] Bug in writer-monad-protocol for lists</title>
                <link>http://dev.clojure.org/jira/browse/ALGOM-3</link>
                <project id="10072" key="ALGOM">algo.monads</project>
                        <description>&lt;p&gt;The writer-monad-protocol for lists uses concat in writer-m-combine, the result of which has type LazySeq. However, LazySeq does not have an implementation in writer-monad-protocol (the first example, using vectors, shows expected output):&lt;/p&gt;

&lt;p&gt;{{&lt;br/&gt;
user=&amp;gt; (use &apos;clojure.algo.monads)&lt;br/&gt;
nil&lt;br/&gt;
user=&amp;gt; (domonad (writer-m []) [_ (domonad &lt;span class=&quot;error&quot;&gt;&amp;#91;_ (write &amp;quot;foo&amp;quot;)&amp;#93;&lt;/span&gt; nil) _ (write &quot;bar&quot;)] 1)&lt;br/&gt;
[1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;foo&amp;quot; &amp;quot;bar&amp;quot;&amp;#93;&lt;/span&gt;]&lt;br/&gt;
user=&amp;gt; (domonad (writer-m ()) [_ (domonad &lt;span class=&quot;error&quot;&gt;&amp;#91;_ (write &amp;quot;foo&amp;quot;)&amp;#93;&lt;/span&gt; nil) _ (write &quot;bar&quot;)] 1)&lt;br/&gt;
IllegalArgumentException No implementation of method: :writer-m-combine of protocol: #&apos;clojure.algo.monads/writer-monad-&lt;br/&gt;
protocol found for class: clojure.lang.LazySeq  clojure.core/-cache-protocol-fn (core_deftype.clj:527)&lt;br/&gt;
}}&lt;/p&gt;

&lt;p&gt;I suggest changing the protocol extension to ISeq as in the attached diff. With that change:&lt;/p&gt;

&lt;p&gt;{{&lt;br/&gt;
user=&amp;gt; (use &apos;clojure.algo.monads)&lt;br/&gt;
nil&lt;br/&gt;
user=&amp;gt; (domonad (writer-m []) [_ (domonad &lt;span class=&quot;error&quot;&gt;&amp;#91;_ (write &amp;quot;foo&amp;quot;)&amp;#93;&lt;/span&gt; nil) _ (write &quot;bar&quot;)] 1)&lt;br/&gt;
[1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;foo&amp;quot; &amp;quot;bar&amp;quot;&amp;#93;&lt;/span&gt;]&lt;br/&gt;
user=&amp;gt; (domonad (writer-m ()) [_ (domonad &lt;span class=&quot;error&quot;&gt;&amp;#91;_ (write &amp;quot;foo&amp;quot;)&amp;#93;&lt;/span&gt; nil) _ (write &quot;bar&quot;)] 1)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;1 (&amp;quot;foo&amp;quot; &amp;quot;bar&amp;quot;)&amp;#93;&lt;/span&gt;&lt;br/&gt;
}}&lt;/p&gt;</description>
                <environment>Clojure 1.4, Java 1.7, Windows 7</environment>
            <key id="15340">ALGOM-3</key>
            <summary>Bug in writer-monad-protocol for lists</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="4" iconUrl="http://dev.clojure.org/jira/images/icons/priority_minor.gif">Minor</priority>
                    <status id="1" iconUrl="http://dev.clojure.org/jira/images/icons/status_open.gif">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="khinsen">Konrad Hinsen</assignee>
                                <reporter username="glchapman">Greg Chapman</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Apr 2012 13:20:11 -0500</created>
                <updated>Wed, 18 Apr 2012 13:20:11 -0500</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                    <attachment id="11064" name="monads.clj.diff" size="429" author="glchapman" created="Wed, 18 Apr 2012 13:20:11 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>