Idris2/tests/chez/chez026/Dummy.idr
2020-06-20 17:24:05 +02:00

17 lines
316 B
Idris

module Dummy
import System.Directory
dirExists : String -> IO Bool
dirExists dir = do
Right d <- openDir dir
| Left _ => pure False
closeDir d
pure True
main : IO ()
main = do
True <- dirExists "custom_build"
| False => putStrLn "Could not find build directory"
putStrLn "Found build directory"