unexpected ambiguity

Niklas Sorensson nik at cs.chalmers.se
Mon Apr 10 10:32:16 EDT 2006


Hello,

Trying to compile the attached modules gives the following error message:

Main.hs:8:15:
     Ambiguous occurrence `lift'
     It could refer to either `Control.Monad.Trans.lift', ...
                           or `Apa.lift', imported from Apa at ...

Is this correct? I would have expected that an unqualified lift could only refer to the one exported 
from Apa in this case.

/Niklas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Apa.hs
Type: text/x-haskell
Size: 31 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/glasgow-haskell-users/attachments/20060410/55fd5974/Apa.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.hs
Type: text/x-haskell
Size: 191 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/glasgow-haskell-users/attachments/20060410/55fd5974/Main.bin


More information about the Glasgow-haskell-users mailing list