<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> import Prelude hiding ( (++) )<br> 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 <pumpkingod@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Terry Hayes <tdchayes@pacbell.net><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 <<a ymailto="mailto:tdchayes@pacbell.net" href="mailto:tdchayes@pacbell.net">tdchayes@pacbell.net</a>> wrote:<br>> I'd like to redefine (++) so that it works on a more general class of<br>> "lists" (ListOf a). To do this, I found that I can import the Prelude<br>> hiding the definition of (++). Then I want to make [] an instance of<br>> ListOf, and have the (++) function call the built-in Prelude.(++).<br>><br>> My problem is that I can't figure out how to call the built-in function.<br>> Just using "Prelude.(++)" doesn't seem to work in the way that<br>> "Prelude.foldl" would (for example).<br>><br>> Any ideas?<br>><br>> Terry<br>><br>><br>> _______________________________________________<br>> Haskell-Cafe mailing list<br>> <a
ymailto="mailto:Haskell-Cafe@haskell.org" href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br><span>> <a target="_blank" href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a></span><br>><br>><br></div></div></div></body></html>