Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Haskell importing modules

haskell import

  • Please log in to reply
No replies to this topic

#1 Guenhwyvar


    CC Lurker

  • Just Joined
  • Pip
  • 3 posts

Posted 22 October 2011 - 12:48 PM


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 
(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?

  • 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