Haskell : can only load one file at a time via :load
问题 suppose I have two modules NecessaryModule1 & NecessaryModule2 (as outlined in the post Haskell : loading ALL files in current directory path. Then I have noticed in both WinGHCi and GHCi that if I do : > :load NecessaryModule1 [1 of 1] Compiling NecessaryModule1 ( NecessaryModule1.hs, interpreted ) Ok, modules loaded: NecessaryModule1. > addNumber1 2 3 5 > :load NecessaryModule2 [1 of 1] Compiling NecessaryModule2 ( NecessaryModule2.hs, interpreted ) Ok, modules loaded: NecessaryModule2. >