aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-02-18 15:29:24 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2016-02-18 15:29:24 +0100
commit1033436cc593e6e88f8edbcdf394efb9faabe265 (patch)
tree3786e867683e701318a3647144a4a6af08706733 /client
parent02015edc87f3caa8661c16aee6973e6b1cafc783 (diff)
downloadthermoprint-1033436cc593e6e88f8edbcdf394efb9faabe265.tar
thermoprint-1033436cc593e6e88f8edbcdf394efb9faabe265.tar.gz
thermoprint-1033436cc593e6e88f8edbcdf394efb9faabe265.tar.bz2
thermoprint-1033436cc593e6e88f8edbcdf394efb9faabe265.tar.xz
thermoprint-1033436cc593e6e88f8edbcdf394efb9faabe265.zip
More documentation
Diffstat (limited to 'client')
-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