[Haskell-beginners] Make synonym for Main?

Michael Xavier nemesisdesign at gmail.com
Sat Jun 18 09:43:49 CEST 2011


http://www.haskell.org/haskellwiki/Import

You would do:
import qualified Main as M

On Fri, Jun 17, 2011 at 10:47 PM, Christopher Howard <
christopher.howard at frigidcode.com> wrote:

> Say you have a function in Main that is the same name as a function
> you've imported, but you don't want to rename it. But then you have to
> prefix it with "Main" each time you use it:
>
> Main.functionName
>
> Is there some way to rename Main or make a synonym for it, kind of like
> the "import qualified" trick, so you could do...
>
> M.functionName
>
> --
> frigidcode.com
> theologia.indicium.us
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>



-- 
Michael Xavier
http://www.michaelxavier.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110618/c096cc8a/attachment-0001.htm>


More information about the Beginners mailing list