<div dir="ltr"><div class="gmail_quote">Dear listers,<br><div dir="ltr"><br>I was writing a program which defines a function named &quot;show&quot;. But at each of the recursive calls to itself &quot;ghci&quot; is showing the following message:<br>

&#39; Ambiguous occurrence `show&#39;<br>&nbsp;&nbsp;&nbsp; It could refer to either `show&#39;, defined at temp.hs:5:0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; or `show&#39;, imported from Prelude&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;<br><br>I don&#39;t want to import the &#39;show&#39; function from prelude. Is there any way out or I have to declare instance of the &#39;Show&#39;?<br>

Can we specify the module of a function from which it will be referred?<br clear="all"><br>-- <br>Amit kumar Dhar<br><br></div>
</div></div>