aboutsummaryrefslogtreecommitdiff
path: root/client/src/Thermoprint/Client.hs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/Thermoprint/Client.hs')
-rw-r--r--client/src/Thermoprint/Client.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/Thermoprint/Client.hs b/client/src/Thermoprint/Client.hs
index 758a256..5e96b29 100644
--- a/client/src/Thermoprint/Client.hs
+++ b/client/src/Thermoprint/Client.hs
@@ -104,7 +104,9 @@ mkClient' :: (MonadThrow m, MonadIO m) => BaseUrl -> Client m
104mkClient' = mkClient $ ioNat . throwNat 104mkClient' = mkClient $ ioNat . throwNat
105 105
106throwNat :: (Exception e, MonadThrow m) => EitherT e m :~> m 106throwNat :: (Exception e, MonadThrow m) => EitherT e m :~> m
107-- ^ Squash a layer of 'EitherT' into the underlying monad supporting 'throwM'
107throwNat = Nat $ either throwM return <=< runEitherT 108throwNat = Nat $ either throwM return <=< runEitherT
108 109
109ioNat :: MonadIO m => IO :~> m 110ioNat :: MonadIO m => IO :~> m
111-- ^ @ioNat = Nat liftIO@
110ioNat = Nat liftIO 112ioNat = Nat liftIO