@@ -30,8 +30,7 @@ withSystemTempFile
3030 -- ^ Callback that can use the file.
3131 -> Eff es a
3232withSystemTempFile template action = unsafeEff $ \es -> do
33− seqUnliftEff es $ \unlift -> do
34− T.withSystemTempFile template $ \fp handle -> unlift (action fp handle)
33+ T.withSystemTempFile template $ \fp handle -> unEff (action fp handle) es
3534
3635-- | Lifted 'T.withSystemTempDirectory'.
3736withSystemTempDirectory
@@ -42,8 +41,7 @@ withSystemTempDirectory
4241 -- ^ Callback that can use the directory.
4342 -> Eff es a
4443withSystemTempDirectory template action = unsafeEff $ \es -> do
45− seqUnliftEff es $ \unlift -> do
46− T.withSystemTempDirectory template $ \fp -> unlift (action fp)
44+ T.withSystemTempDirectory template $ \fp -> unEff (action fp) es
4745
4846-- | Lifted 'T.withTempFile'.
4947withTempFile
@@ -56,8 +54,7 @@ withTempFile
5654 -- ^ Callback that can use the file.
5755 -> Eff es a
5856withTempFile tmpDir template action = unsafeEff $ \es -> do
59− seqUnliftEff es $ \unlift -> do
60− T.withTempFile tmpDir template $ \fp handle -> unlift (action fp handle)
57+ T.withTempFile tmpDir template $ \fp handle -> unEff (action fp handle) es
6158
6259-- | Lifted 'T.withTempDirectory'.
6360withTempDirectory
@@ -70,5 +67,4 @@ withTempDirectory
7067 -- ^ Callback that can use the directory.
7168 -> Eff es a
7269withTempDirectory tmpDir template action = unsafeEff $ \es -> do
73− seqUnliftEff es $ \unlift -> do
74− T.withTempDirectory tmpDir template $ \fp -> unlift (action fp)
70+ T.withTempDirectory tmpDir template $ \fp -> unEff (action fp) es