packages feed

heart-core 0.3.0 → 0.3.1

raw patch · 2 files changed

+5/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Heart.Core.RIO: instance Heart.Core.RIO.HasStateRef a (Heart.Core.RIO.SomeRef a)

Files

heart-core.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: a5cf742adaa5509eb6eec3356fe1c7597afd091efe599b3c5664ecbdd922a276+-- hash: 1f883982f64deac0d3cefeb13edb5bb554a6e3b717ae53a5a428f51ea1d0fd01  name:           heart-core-version:        0.3.0+version:        0.3.1 synopsis:       An opinionated library prelude in the UnliftIO style description:    Please see the README on GitHub at <https://github.com/ejconlon/heart-core#readme> category:       Prelude
src/Heart/Core/RIO.hs view
@@ -67,6 +67,9 @@ class HasStateRef st env | env -> st where   stateRefL :: Lens' env (SomeRef st) +instance HasStateRef a (SomeRef a) where+  stateRefL = id+ getStateRef :: (HasStateRef st env, MonadReader env m, MonadIO m) => m st getStateRef = do   ref <- view stateRefL