此代码:
import Control.Monad.Trans
liftIOToApp = lift
给出了这个错误:
No instance for (MonadTrans t0) arising from a use of `lift'
In the expression: lift
In an equation for `liftIOToApp': liftIOToApp = lift
但是在向双方添加一个论点之后,它编译得很好:
import Control.Monad.Trans
liftIOToApp a = lift a
liftIOToApp
的这两个定义似乎与我相同。请解释一下。