0
는 Aff
내에서 Eff
전화를 시도 :중복 예외 오류
Could not match type
(exception :: EXCEPTION
, exception :: EXCEPTION
)
with type
(console :: CONSOLE
, exception :: EXCEPTION
, exception :: EXCEPTION
)
while trying to match type Eff
(exception :: EXCEPTION
, exception :: EXCEPTION
)
with type Eff
(console :: CONSOLE
, exception :: EXCEPTION
)
while checking that expression (apply void) (launchAff ((bind (...)) (\$0 ->
...
)
)
)
has type Eff
(console :: CONSOLE
, exception :: EXCEPTION
)
Unit
in value declaration g
어떻게해야합니까 :
import Prelude
import Control.Monad.Aff (Aff, launchAff)
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Class (liftEff)
import Control.Monad.Eff.Console (CONSOLE, log)
import Control.Monad.Eff.Exception (EXCEPTION)
f :: forall eff. Int -> Aff (exception :: EXCEPTION) String
f i = pure $ show i
g :: forall eff. Eff (console :: CONSOLE, exception :: EXCEPTION) Unit
g = void $ launchAff do
s <- f 1
liftEff $ log s
이 중복 저를 얻는다? purescript 버전 0.11.3 사용.