Version of bracket with an INLINE pragma to work around https://gitlab.haskell.org/ghc/ghc/-/issues/22824.
Moduleeffectful-core-2.3.0.1Haskell2010
Effectful.Internal.Utils
- 3 types
- 15 values
- Packageeffectful-core-2.3.0.1
- Exports19
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceUtils.hs
Utils for ThreadId
2 declarationsGet an id of a thread that doesn't prevent its garbage collection.
Utils for Any
3 declarationsThe type constructor Any is type to which you can unsafely coerce any
lifted type, and back. More concretely, for a lifted type t and
value x :: t, unsafeCoerce (unsafeCoerce x :: Any) :: t is equivalent
to x.
Strict IORef
4 declarationsA strict variant of IORef.
Strict MVar
6 declarationsA strict variant of MVar.
Unique
2 declarationsA unique with no possibility for CAS contention.
Credits for this go to Edward Kmett.