Hoogle Search
Within LTS Haskell 24.36 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
class GSemigroup a =>
GMonoid ageneric-deriving Generics.Deriving.Monoid No documentation available.
class GSemigroup' f =>
GMonoid' (f :: k -> Type)generic-deriving Generics.Deriving.Monoid No documentation available.
newtype
ReflectedMonoid a (s :: k)reflection Data.Reflection No documentation available.
ReflectedMonoid :: a -> ReflectedMonoid a (s :: k)reflection Data.Reflection No documentation available.
-
reflection Data.Reflection No documentation available.
ReifiedMonoid :: (a -> a -> a) -> a -> ReifiedMonoid areflection Data.Reflection No documentation available.
-
reflection Data.Reflection No documentation available.
fromSynchronousMonoid :: Monoid a => Exceptional e a -> Exceptional e aexplicit-exception Control.Monad.Exception.Asynchronous.Lazy No documentation available.
-
explicit-exception Control.Monad.Exception.Asynchronous.Lazy No documentation available.
-
explicit-exception Control.Monad.Exception.Asynchronous.Lazy We advise to use the Endo Monoid when you want to read a series of characters into a list. This means you use the difference lists technique in order to build the list, which is efficient.
import Data.Monoid (Endo, appEndo, ) import Control.Exception (try, ) import qualified Control.Monad.Exception.Synchronous as Sync
fmap (flip appEndo []) $ manyMonoidT (fromSynchronousMonoidT $ fmap (Endo . (:)) $ Sync.fromEitherT $ try getChar)
If you want Lazy IO you must additionally convert getChar to LazyIO monad.