<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Thanks, you got me to head in the correct direction.<br><br>I need to import Prelude twice, once without (++) and once qualified only for the (++) function.<br><br>&nbsp; import Prelude hiding ( (++) )<br>&nbsp; import qualified Prelude ( (++) )<br><br>Terry<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Daniel Peebles &lt;pumpkingod@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Terry Hayes &lt;tdchayes@pacbell.net&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> haskell-cafe@haskell.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, September 24, 2009
 6:02:18 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Haskell-cafe] Referring to Prelude.(++)<br></font><br>
Did you try (Prelude.++)? I think that's the way it needs to be done.<br><br>Dan<br><br>On Thu, Sep 24, 2009 at 8:59 PM, Terry Hayes &lt;<a ymailto="mailto:tdchayes@pacbell.net" href="mailto:tdchayes@pacbell.net">tdchayes@pacbell.net</a>&gt; wrote:<br>&gt; I'd like to redefine (++) so that it works on a more general class of<br>&gt; "lists" (ListOf a).&nbsp; To do this, I found that I can import the Prelude<br>&gt; hiding the definition of (++).&nbsp; Then I want to make [] an instance of<br>&gt; ListOf, and have the (++) function call the built-in Prelude.(++).<br>&gt;<br>&gt; My problem is that I can't figure out how to call the built-in function.<br>&gt; Just using "Prelude.(++)" doesn't seem to work in the way that<br>&gt; "Prelude.foldl" would (for example).<br>&gt;<br>&gt; Any ideas?<br>&gt;<br>&gt; Terry<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Haskell-Cafe mailing list<br>&gt; <a
 ymailto="mailto:Haskell-Cafe@haskell.org" href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br><span>&gt; <a target="_blank" href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a></span><br>&gt;<br>&gt;<br></div></div></div></body></html>