
5 Mar
2014
5 Mar
'14
2:18 p.m.
Hi James,
So import still does not work. But by trying “:load" from the parent directory, I was able to load Sphere, Cube and Cuboid. The problem is that it appears that only one is available at a time (i.e. loading Cube displaces Sphere). What’s more there is no way to do qualified imports.
Sorry about this one. 'import' depends on the available/installed ghc packages, the given module name 'Geometry.Sphere' is looked up in these packages. Calling 'ghc-pkg list' will give you a list of all packages. If you don't have created and installed a package for your geometry files, then ghci will not know them. So calling ':load/:add' is the right thing here. Greetings, Daniel