valderman / haste-compiler

A GHC-based Haskell to JavaScript compiler
http://haste-lang.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 109 forks source link

hastec: Unable to locate function [...] in module GHC.[...]! #368

Closed tobi512 closed 8 years ago

tobi512 commented 8 years ago

Hi Anton, hopefully it's not a stupid question, but since I successfully installed and booted Haste (thanks again for the help in #363) I tried to run some of the examples (e.g. calculator) and I'm running into errors of the following type when executing make (this one specifically for calculator): hastec: Unable to locate function '$fMonadIO' in module 'GHC.Base'!

Any idea what I'm doing wrong, did I misconfigure GHC or sth?! I supposed that the examples should work out of the box and a simple HelloWorld using main = alert "Hello world!" works fine...

Thanks in advance! Tobias

valderman commented 8 years ago

This is likely a problem with your workaround for the boot problem: Haste looks for the intermediate code where it placed it, not where that code was later on copied. Does the problem still persist if you use the prebuild binaries instead (and possibly remove your ~/.haste directory as well, for good measure)?

tobi512 commented 8 years ago

Wow, that was fast! Yes you're right, all the stuff seems to be inside the duplicate folder again:

haste-wrong-folder

I'll try to copy it to the right direction first, since downloading the binaries from haste-lang.org is really slow right now (20 mins left...)

Great support so far, helps me a lot with a university project :+1: Greetings from Germany!

valderman commented 8 years ago

20 minutes?! I knew the hosting provider was awful, but this is completely unacceptable. Moving to another one, stat.

In the meantime, you can get the binaries from here. It's only a 10 Mb/s line, but it should still be significantly faster than the ~1 MB per minute speeds you're currently seeing from haste-lang.org.

tobi512 commented 8 years ago

Just 5 more mins now, I can wait :smile: Moving the folders worked again, I can successfully compile calculator and it works in the browser, nice!

PS. Are you accepting donations for the project/hosting?

valderman commented 8 years ago

Not accepting donations I'm afraid. Not only am I using the same hosting plans for various things, making it a bit sketchy to accept donations earmarked for Haste, but the situation with my employer would also be complicated at best, impossible at worst.