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.

  1. class GSemigroup a => GMonoid a

    generic-deriving Generics.Deriving.Monoid

    No documentation available.

  2. class GSemigroup' f => GMonoid' (f :: k -> Type)

    generic-deriving Generics.Deriving.Monoid

    No documentation available.

  3. newtype ReflectedMonoid a (s :: k)

    reflection Data.Reflection

    No documentation available.

  4. ReflectedMonoid :: a -> ReflectedMonoid a (s :: k)

    reflection Data.Reflection

    No documentation available.

  5. data ReifiedMonoid a

    reflection Data.Reflection

    No documentation available.

  6. ReifiedMonoid :: (a -> a -> a) -> a -> ReifiedMonoid a

    reflection Data.Reflection

    No documentation available.

  7. reifyMonoid :: (a -> a -> a) -> a -> (forall s . Reifies s (ReifiedMonoid a) => t -> ReflectedMonoid a s) -> t -> a

    reflection Data.Reflection

    No documentation available.

  8. fromSynchronousMonoid :: Monoid a => Exceptional e a -> Exceptional e a

    explicit-exception Control.Monad.Exception.Asynchronous.Lazy

    No documentation available.

  9. fromSynchronousMonoidT :: forall (m :: Type -> Type) a e . (Functor m, Monoid a) => ExceptionalT e m a -> ExceptionalT e m a

    explicit-exception Control.Monad.Exception.Asynchronous.Lazy

    No documentation available.

  10. manyMonoidT :: forall (m :: Type -> Type) a e . (Monad m, Monoid a) => ExceptionalT e m a -> ExceptionalT e m a

    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.

Page 20 of many | Previous | Next