[Haskell-cafe] Use of the Try typeclass

Michael Snoyman michael at snoyman.com
Thu Dec 31 00:43:52 EST 2009


Edward,

What version of the packages are you using? Can you give the output of:

ghc-pkg list|grep failure

Michael

On Thu, Dec 31, 2009 at 7:11 AM, Edward Z. Yang <ezyang at mit.edu> wrote:

> Excerpts from Alexander Dunlap's message of Thu Dec 31 00:06:58 -0500 2009:
> > Why are you importing both Control.Failure and Control.Monad.Failure
> > when the latter just re-exports the former? Are you using the latest
> > versions of the two packages? Try importing just
> > Control.Monad.Failure.MTL; that provides the MTL failure instances and
> > also re-exports Control.Failure.
>
> That's correct. I imported both when Control.Monad.Failure.MTL failed
> to expose try:
>
> ezyang at javelin:~/Dev/wizard$ ghci
> Prelude> :m +Control.Monad.Failure.MTL
> Prelude Control.Monad.Failure.MTL> :t try
>
> <interactive>:1:0: Not in scope: `try'
>
> Which, doesn't really seem like it should be the case.
>
> Cheers,
> Edward
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091231/5db0d592/attachment-0001.html


More information about the Haskell-Cafe mailing list