Jump to content

Haskell importing modules

- - - - -

  • Please log in to reply
No replies to this topic

#1
Guenhwyvar

Guenhwyvar

    Newbie

  • Members
  • Pip
  • 3 posts
Hiya,

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users