Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error: Ambiguous occurrence 'try' #5

Open
MichaelBaker opened this issue May 13, 2013 · 4 comments
Open

Compilation error: Ambiguous occurrence 'try' #5

MichaelBaker opened this issue May 13, 2013 · 4 comments

Comments

@MichaelBaker
Copy link

I get the following compilation error on OSX using haskell-platform 2012.4.0.0 from Homebrew.

HSH/Command.hs:497:13:
    Ambiguous occurrence `try'
    It could refer to either `System.IO.Error.try',
                             imported from `System.IO.Error' at HSH/Command.hs:42:1-37
                          or `Control.Exception.try',
                             imported from `Control.Exception' at HSH/Command.hs:46:26-28
                             (and originally defined in `Control.Exception.Base')
@ierton
Copy link
Owner

ierton commented May 14, 2013

Is it an HSH issue? Can you install HSH alone with 'cabal install HSH' ?

@MichaelBaker
Copy link
Author

Yep, it fails in isolation too.

@ierton
Copy link
Owner

ierton commented May 15, 2013

I've check HSH. Error you have reported exists in 2.0.3 and 2.0.4 . HSH-2.1.0 works fine on my machine. Can you try 2.1.0?

@MichaelBaker
Copy link
Author

That one doesn't seem to work for me either. There's an open pull request for HSH that fixes this problem, but it's been open for two months :/

Resolving dependencies...
Configuring HSH-2.1.0...
Building HSH-2.1.0...
Preprocessing library HSH-2.1.0...
[1 of 4] Compiling HSH.Channel      ( HSH/Channel.hs, dist/build/HSH/Channel.o )

HSH/Channel.hs:61:42:
    Warning: This binding for `h' shadows the existing binding
               bound at HSH/Channel.hs:59:22

HSH/Channel.hs:62:39:
    Warning: This binding for `h' shadows the existing binding
               bound at HSH/Channel.hs:59:22
[2 of 4] Compiling HSH.Command      ( HSH/Command.hs, dist/build/HSH/Command.o )

HSH/Command.hs:497:13:
    Ambiguous occurrence `try'
    It could refer to either `System.IO.Error.try',
                             imported from `System.IO.Error' at HSH/Command.hs:42:1-37
                          or `Control.Exception.try',
                             imported from `Control.Exception' at HSH/Command.hs:46:26-28
                             (and originally defined in `Control.Exception.Base')
Failed to install HSH-2.1.0
cabal: Error: some packages failed to install:
HSH-2.1.0 failed during the building phase. The exception was:
ExitFailure 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants