So far I have to say that composing lenses has been quite hectic for me ...
The main difficulties is the fact that most composition (such as a simple
`view lens`) does not compile unless you provide correct signatures. So you
need to find out by yourself.
This can be challenging at time for newbies.
Here is an example:
import qualified Pipes.Text as PT
decodeEvent = PT.decodeUtf8 . PT.line
You need to figure out that the type is:
decodeEvent ::
Monad m
=> Lens' (Producer ByteString m r)
(Producer Text m (Producer Text m (Producer ByteString m r)))
Any tips would be welcomed !
--
You received this message because you are subscribed to the Google Groups
"Haskell Pipes" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].