File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/blockfrost/lib/Convex Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import Control.Monad.Except (
39
39
runExceptT ,
40
40
)
41
41
import Control.Monad.IO.Class (MonadIO (.. ))
42
- import Control.Monad.Reader (ReaderT (.. ))
42
+ import Control.Monad.Reader (MonadReader ( .. ), ReaderT (.. ))
43
43
import Control.Monad.State.Strict (StateT )
44
44
import Control.Monad.State.Strict qualified as State
45
45
import Control.Monad.Trans.Class (MonadTrans (lift ))
@@ -80,6 +80,10 @@ down = coerce
80
80
instance MonadTrans BlockfrostT where
81
81
lift = BlockfrostT . lift . lift
82
82
83
+ instance (MonadReader e m ) => MonadReader e (BlockfrostT m ) where
84
+ ask = lift ask
85
+ local f (up -> a) = down $ \ cache config -> local f (a cache config)
86
+
83
87
instance (MonadError e m ) => MonadError e (BlockfrostT m ) where
84
88
throwError = lift . throwError
85
89
catchError (up -> action) handler = down $ \ cache config ->
You can’t perform that action at this time.
0 commit comments