2 番目のパイプ ( ) がなくても問題ないパイプを使用した次のコードがあります>-> P.mapM ( fillMD5)。fillMD5は操作a -> IO aです。
runSafeT $ runEffect $
every (senseRecursive5 startfpo)
>-> P.mapM ( fillMD5)
>-> P.map fp2rdf
>-> toNTriple houtfile
エラーは次のとおりです。
Couldn't match type `IO' with `Pipes.Safe.SafeT IO'
Expected type: Pipes.Safe.SafeT IO ()
Actual type: IO ()
In the second argument of `($)', namely
`runEffect
のタイプmapMが
mapM :: Monad m => (a -> m b) -> Pipe a b m r
Safe.SafeTしかし、これを?に持ち上げる方法がわかりません。