@@ -30,16 +30,16 @@ catchException' = unsafeCoerce catchException
30
30
main = do
31
31
let fp = Path .concat
32
32
33
- A .exists (fp [" examples " , " Test.purs" ]) $ \e ->
33
+ A .exists (fp [" test " , " Test.purs" ]) $ \e ->
34
34
log $ " Test.purs exists? " ++ show e
35
35
36
- file <- S .readTextFile UTF8 (fp [" examples " , " Test.purs" ])
36
+ file <- S .readTextFile UTF8 (fp [" test " , " Test.purs" ])
37
37
log " \n\n readTextFile sync result:"
38
38
log $ file
39
39
40
40
catchException' (\err -> do
41
41
log $ " Caught readTextFile error:\n " ++ show err
42
- return " " ) $ S .readTextFile UTF8 (fp [" examples " , " does not exist" ])
42
+ return " " ) $ S .readTextFile UTF8 (fp [" test " , " does not exist" ])
43
43
44
44
-- If an error is thrown, it's probably EEXIST, so ignore it. Should
45
45
-- really check this instead.
@@ -81,15 +81,15 @@ main = do
81
81
log " \n\n truncate result:"
82
82
either (log <<< show) (log <<< show) x
83
83
84
- A .readFile (fp [" examples " , " Test.purs" ]) $ \x -> do
84
+ A .readFile (fp [" test " , " Test.purs" ]) $ \x -> do
85
85
log " \n\n readFile result:"
86
86
either (log <<< show) (log <<< show) x
87
87
88
- A .readTextFile UTF8 (fp [" examples " , " Test.purs" ]) $ \x -> do
88
+ A .readTextFile UTF8 (fp [" test " , " Test.purs" ]) $ \x -> do
89
89
log " \n\n readTextFile result:"
90
90
either (log <<< show) log x
91
91
92
- A .stat (fp [" examples " , " Test.purs" ]) $ \x -> do
92
+ A .stat (fp [" test " , " Test.purs" ]) $ \x -> do
93
93
log " \n\n stat:"
94
94
case x of
95
95
Left err -> log $ " Error:" ++ show err
0 commit comments