SkillAgentSearch skills...

Unlift

🛗 Typeclass for monads that can be unlifted to arbitrary base monads

Install / Use

/learn @kowainik/Unlift
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

unlift

GitHub CI Hackage MPL-2.0 license

Typeclass for monads that can be unlifted to arbitrary base monads:

class (MonadBase b m) => MonadUnlift b m
  where
    withRunInBase :: ((forall a . m a -> b a) -> b x) -> m x

This typeclass is helpful when writing code that is polymorphic over the base monad, so later you can select a different base monad for each specific use-case.

Common usages include:

  1. Concurrent testing with dejafu.
  2. Working with code over polymorphic PrimMonad.
View on GitHub
GitHub Stars25
CategoryDevelopment
Updated2y ago
Forks0

Languages

Haskell

Security Score

80/100

Audited on Sep 17, 2023

No findings