shell-conduit
shell-conduit copied to clipboard
Add 'Semigroup' and 'Monoid' instances for 'Segment'
These instance would be really useful!
instance Semigroup r => Semigroup (Segment r) where
(<>) = liftA2 (<>)
instance Monoid r => Monoid (Segment r) where
mempty = pure mempty
mappend = liftA2 mappend
Sorry for my late reply. The instances sound useful. Can you send a PR ?