I have just started haskell and I need more than one file of work. I need to import all my functions from one .hs file to another.
I tried
[B]module Base where [/B] (Main Code...)
and in the new file (in the same folder):
[B]import Base[/B]
at the top of my new file.
Eclipse obviously finds it as this removes any errors and it accepts the data types and functions from 'Base.hs' but when I try to compile I get:
Could not find module `Base':
Use -v to see a list of the files searched for.
What do I do to help it compile?
Thanks


Sign In
Create Account

Back to top









