Portability | portable |
---|---|
Stability | experimental |
Maintainer | jeremy@n-heptane.com |
Safe Haskell | Safe-Infered |
Documentation
Acts like idP
, but also passes a copy to the supplied consumer.
:: MonadIO m | |
=> (a -> ByteString) | function to convert the value to a
|
-> FilePath | file to log to |
-> Pipe a a m () |
Acts like idP
, but also writes a copy to a file.
:: MonadIO m | |
=> FilePath | file to log to |
-> Pipe ByteString ByteString m () |
Acts like, idP
, but also writes a copy to the specified log file.
This function is equivalent to teeFile id
.