use the command :set +m
use the command stack runghc Main.hs
use the command stack repl
This will allow you to inspect the functions in the code and run them
Use the stack build
command
finding which files are hidden
fmap (fmap isHiddenFile ) $ FS.getDirectoryContents "/home/chetan"
getting non-hidden files
fmap (filter $ not. isHiddenFile ) $ FS.getDirectoryContents "/home/chetan"
Use this command :set -XOverloadedStrings