Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created November 14, 2023 18:33
Show Gist options
  • Save exarkun/bae08db44bf78e9baeb0263ddc39341d to your computer and use it in GitHub Desktop.
Save exarkun/bae08db44bf78e9baeb0263ddc39341d to your computer and use it in GitHub Desktop.
import System.Directory
main = do
let dirPath = "/home/exarkun/"
setCurrentDirectory dirPath
getCurrentDirectory >>= putStrLn
files <- getDirectoryContents dirPath
putStrLn $ show files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment