summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/GhciCurDir.script
blob: cfeb1a41d85fe62558eae7e180274325ffc8044c (plain)
1
2
3
4
5
6
7
8
import System.Directory
import Control.Monad

createDirectory "test"
createDirectory "test/test1"
:cd test
fs <- getDirectoryContents "."
unless ("test1" `elem` fs) $ putStrLn "Uh oh."