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
しかし、これを?に持ち上げる方法がわかりません。