<meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.haskell.org/haskellwiki/Import">http://www.haskell.org/haskellwiki/Import</a><div><br></div><div>You would do:</div><div>import qualified Main as M<br>
<br><div class="gmail_quote">On Fri, Jun 17, 2011 at 10:47 PM, Christopher Howard <span dir="ltr">&lt;<a href="mailto:christopher.howard@frigidcode.com">christopher.howard@frigidcode.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Say you have a function in Main that is the same name as a function<br>
you&#39;ve imported, but you don&#39;t want to rename it. But then you have to<br>
prefix it with &quot;Main&quot; each time you use it:<br>
<br>
Main.functionName<br>
<br>
Is there some way to rename Main or make a synonym for it, kind of like<br>
the &quot;import qualified&quot; trick, so you could do...<br>
<br>
M.functionName<br>
<font color="#888888"><br>
--<br>
<a href="http://frigidcode.com" target="_blank">frigidcode.com</a><br>
<a href="http://theologia.indicium.us" target="_blank">theologia.indicium.us</a><br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Michael Xavier<br><a href="http://www.michaelxavier.net">http://www.michaelxavier.net</a><br>
</div>