12月
05
2019
Load a module in GHCi by module name when module name doesn't match file name
Suppose I am given a source file called MyModule.hs and inside it the module declaration is module My.Module where ... (note: not module MyModule where ... ). I am not permitted to alter this source file or change the directory structure where the file resides. From reading some docs about importing...