1

I've tried setting up Haste using the official installation guide. Trying to compile a Hello World produces the following error:

Compiling Main into .
Linking haste-compiler/test.js
Linking Main
Linking GHC.Types
Linking GHC.IO.Handle.Text
hastec: /Users/vhsmaia/.haste/jsmods/base/GHC/IO/Handle/Text.jsmod: openBinaryFile: does not exist (No such file or directory)

I've then tried to compile the portable version. The error is now:

hastec: user error (Haste needs to be rebooted; please run haste-boot

Running haste-boot does not amend the error.

4

1 回答 1

0

我认为您遇到的问题是hastec希望您的模块具有主模块。尝试将文件重命名为并在文件顶部Main.hs添加声明。module Main where

于 2014-01-04T18:14:01.880 回答