#20 get (?)

closed
nobody
None
5
2008-02-17
2005-10-29
Anonymous
No

so you defined a funcion with the same name as one
contained in

Control.Monad.State.get
Graphics.UI.WX.Attributes.get

Ambiguous occurrence... what can i do!?

i was asked to code a program using both libraries.. :\
and i need it both ways..

Discussion

  • Eric Kow

    Eric Kow - 2008-02-17
    • status: open --> closed
     
  • Eric Kow

    Eric Kow - 2008-02-17

    Logged In: YES
    user_id=242465
    Originator: NO

    Too bad nobody responded to this request! This can be worked around by hiding get from one of the modules and importing it qualified

    import Control.Monad.State
    import Graphics.UI.WX.Attributes hiding (get)
    import qualified Graphics.UI.UX.Attributes as G

    Also, using just explicit imports would have worked.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks