How do I read all file names from a directory in Haskell?
I tried to use the getDirectoryContents
function and put:
import System.Directory (doesDirectoryExist, getDirectoryContents)
but it gave an error on the import:
Could not load module ‘System.Directory’
It is a member of the hidden package ‘directory-1.3.6.0’.
You can run ‘:set -package directory’ to expose it.
Where should I run :set -package directory
?