Commit fb514630 authored by Committed by Mikhail GlushenkovBrowse files
init: Only add exposed-modules which are in an hs-source-dir
Only those modules found in a directory in hs-source-dirs will be added to exposed-modules. If a directory 'src' is found it will be used as hs-source-dirs (note in this case any .hs files in the root directory will NOT be added to exposed-modules). If any directories are specified on the command line with --source-dir, they will be used. If no directories are specified on the command line and there is no directory named src, the root directory will be used. Fixes #3484.