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 754a35c commit 3bf8a44Copy full SHA for 3bf8a44
examples/Test.purs
@@ -41,6 +41,11 @@ main = do
41
log $ "Caught readTextFile error:\n" ++ show err
42
return "") $ S.readTextFile UTF8 (fp ["examples", "does not exist"])
43
44
+ -- If an error is thrown, it's probably EEXIST, so ignore it. Should
45
+ -- really check this instead.
46
+ catchException' (const (return unit)) (S.mkdir "tmp")
47
+
48
+ S.writeTextFile ASCII (fp ["tmp", "Test.js"]) "console.log('hello world')"
49
S.rename (fp ["tmp", "Test.js"]) (fp ["tmp", "Test1.js"])
50
51
S.truncate (fp ["tmp", "Test1.js"]) 1000
0 commit comments