简体   繁体   中英

Use Control.Monad.Trans.Except instead - how to turn off this warning in ghc?

是否可以在ghc编译器中关闭警告?

Deprecated: "Use Control.Monad.Trans.Except instead"

You can do with

{-# OPTIONS_GHC -fno-warn-warnings-deprecations -#}
{-# OPTIONS_GHC -fno-warn-deprecated-flags -#}

But I would not recommend that - better change your import to importing the mentioned package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM