@@ -30,8 +30,7 @@ withSystemTempFile
30 -- ^ Callback that can use the file.
30 -- ^ Callback that can use the file.
31 -> Eff es a
31 -> Eff es a
32withSystemTempFile template action = unsafeEff $ \es -> do
32withSystemTempFile 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
36-- | Lifted 'T.withSystemTempDirectory'.
35-- | Lifted 'T.withSystemTempDirectory'.
37withSystemTempDirectory
36withSystemTempDirectory
@@ -42,8 +41,7 @@ withSystemTempDirectory
42 -- ^ Callback that can use the directory.
41 -- ^ Callback that can use the directory.
43 -> Eff es a
42 -> Eff es a
44withSystemTempDirectory template action = unsafeEff $ \es -> do
43withSystemTempDirectory 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
48-- | Lifted 'T.withTempFile'.
46-- | Lifted 'T.withTempFile'.
49withTempFile
47withTempFile
@@ -56,8 +54,7 @@ withTempFile
56 -- ^ Callback that can use the file.
54 -- ^ Callback that can use the file.
57 -> Eff es a
55 -> Eff es a
58withTempFile tmpDir template action = unsafeEff $ \es -> do
56withTempFile 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
62-- | Lifted 'T.withTempDirectory'.
59-- | Lifted 'T.withTempDirectory'.
63withTempDirectory
60withTempDirectory
@@ -70,5 +67,4 @@ withTempDirectory
70 -- ^ Callback that can use the directory.
67 -- ^ Callback that can use the directory.
71 -> Eff es a
68 -> Eff es a
72withTempDirectory tmpDir template action = unsafeEff $ \es -> do
69withTempDirectory 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