Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Haskell importing modules

haskell import

  • Please log in to reply
No replies to this topic

#1 Guenhwyvar

Guenhwyvar

    CC Lurker

  • Just Joined
  • Pip
  • 3 posts

Posted 22 October 2011 - 12:48 PM

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
  • 0





Also tagged with one or more of these keywords: haskell, import

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download