On Sun, Apr 18, 2010 at 9:02 PM, Brent Yorgey <span dir="ltr">&lt;<a href="mailto:byorgey@seas.upenn.edu">byorgey@seas.upenn.edu</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Conal,<br>
<br>
Thanks for looking into this!  Making (:-*) into a proper type seems<br>
promising.  I did try wrapping (:-*) in a newtype but that didn&#39;t<br>
help (although I didn&#39;t expect it to).<br></blockquote><div><br>What do you mean by a &quot;proper type&quot;?  I didn&#39;t know what Roman meant either, though I guessed he meant a newtype or data type.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


I see you just uploaded a new version of vector-space; what&#39;s new in<br>
0.6.2?<br></blockquote><div><br>The dependency on the Boolean package now specifies &gt;= 0.0.1.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<font color="#888888">-Brent<br>
</font><div><div></div><div class="h5"><br>
On Sat, Apr 17, 2010 at 10:28:45AM -0700, Conal Elliott wrote:<br>
&gt; Oh!  I&#39;d completely forgotten about this idea.  Looking at Data.LinearMap in<br>
&gt; vector-space, I see a comment about exactly this ambiguity, as well as the<br>
&gt; start of a new module that wraps a data type around the linear map<br>
&gt; representation.  I don&#39;t recall whether I got stuck or just distracted.<br>
&gt;<br>
&gt; On Sat, Apr 17, 2010 at 3:46 AM, Roman Leshchinskiy &lt;<a href="mailto:rl@cse.unsw.edu.au">rl@cse.unsw.edu.au</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; On 17/04/2010, at 11:00, Conal Elliott wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; I&#39;m unsure now, but I think I tried making Basis a data type (not syn)<br>
&gt; &gt; and ran into the problem I mentioned above.  The Basis *synonyms* also have<br>
&gt; &gt; HasTrie instances, which is crucially important.  If we switch to<br>
&gt; &gt; (injective) data types, then we lose the HasTrie instances.  I&#39;d be okay<br>
&gt; &gt; with defining HasTrie instances (preferably via &quot;deriving&quot;) for the<br>
&gt; &gt; associated Basis data types, but I couldn&#39;t figure out how to.  Maybe it&#39;s<br>
&gt; &gt; not possible currently, or maybe I just didn&#39;t know how.<br>
&gt; &gt;<br>
&gt; &gt; Could you perhaps make (:-*) a proper type rather than a synonym? That<br>
&gt; &gt; would help with the ambiguity.<br>
&gt; &gt;<br>
&gt; &gt; Roman<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br>
</div></div></blockquote></div><br>