I cant import System.Directory when using stack
问题 I am little confused about why this doesn't work. I have a small program that import System.Directory. When I run it with runhaskell on the command line it compiles and outputs what I expect. When I use the same program with stack I get a message saying Failed to load interface for ‘System.Directory’ It is a member of the hidden package ‘directory-1.3.0.0’. Use -v to see a list of the files searched for. I dont understand why it would work with runhaskell but not when i use stack ghci 回答1: