开发者

haskell GHC error

How do I resolve this warning? (I never got it before, but did a new install of a package, and it seems to have now given errors on a previous working package.)

  Warning: In the use of `isEmptyChan'
             (imported from Control.Concurrent, but defined in Control.Concurrent.Chan)开发者_JAVA技巧:
             Deprecated: "if you need this operation, use Control.Concurrent.STM.TChan instead.  See http://hackage.haskell.org/trac/ghc/ticket/4154 for details"


As the warning indicates, Control.Concurrent.Chan is now deprecated:

...deprecation is a status applied to software features to indicate that they should be avoided, typically because they have been superseded.

And to avoid the warning, simply follow the instructions and use the Control.Concurrent.STM.TChan instead.

Of course, since it is simply a warning, you could ignore it; but that's definitely not the best choice. The cause of this should be the recent update.

It's perfectly understandable that terminology might be confusing; in that case Google and Wikipedia could be your best friends:)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜