I am trying to teach myself Haskell from the book Learn You A Haskell for Great Good. I got up to the last section of chapter 7 (Modules), where it tells how to create your own module. I did a copy and paste of the Geometry module given in the book at the beginning of the section. The name of the file is Geometry.hs, as the book suggested, and the file is in the bin directory for ghci, which is where I previously was able to successfully do a load using :l for another .hs file.
When I type the following command in GHCi
import Geometry
I get the following error:
Could not find module 'Geometry' It is not a module in the current program or in any known package
I must be doing something that is obviously wrong, but I can't figure out what it is.
:!cd
to find out the current working directory of ghci). – Accommodate:l
oaded file. Create an additional file where youimport Geometry
and load that one. – TransformismGeometry
itself without creating a wrapper module). – Ramsay