[Haskell-cafe] namespacing?

Matthew Walton matthew at alledora.co.uk
Wed Dec 8 10:15:16 EST 2004


azrael at demonlords.net wrote:
> I've got a general new person type question.
> 
> I understand that I can hide a function in a module that I am importing
> if it conflicts with another identical function name.
> 
> But if the situation arises that I would like to use two identically
> named  functions from two different modules is there anyway for me to
> specify that I want to use the function from module A rather then the
> function from module B.

import qualified A as A
import qualified B as B

A.fun
B.fun



Or indeed

import qualified A as Flobble
import B

Flooble.fun -- fun from A
fun         -- fun from B



More information about the Haskell-Cafe mailing list