We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d2c17c commit 4fa4588Copy full SHA for 4fa4588
tests/TestCommon.hs
@@ -47,11 +47,11 @@ hnixEvalText opts src =
47
nixEvalString :: Text -> IO Text
48
nixEvalString expr =
49
do
50
- (coerce -> fp, h) <- mkstemp "nix-test-eval"
+ (fp, h) <- mkstemp "nix-test-eval"
51
Text.hPutStr h expr
52
hClose h
53
- res <- nixEvalFile fp
54
- removeLink $ coerce fp
+ res <- nixEvalFile $ coerce fp
+ removeLink $ fp
55
pure res
56
57
nixEvalFile :: Path -> IO Text
0 commit comments