开发者

Yesod-form package: Problem with running programs it via "wai-handler-devel"

All,

I made a copy of hello-forms.hs from yesod-form package, just for doing some experiments. When I run it via the main function,开发者_运维问答 the server is doing well e.g. on port 2500. HalloWelt.hs is here.

But when I try to run that program in bash console via wai-handler-devel - being in the directory where the HalloWelt.hs ( http://hpaste.org/48381 ) resides...

wai-handler-devel 2600 HalloWelt withHalloWelt

I get...

Attempting to interpret your app... Compile failed: NotAllowed "module is not loaded: `HalloWelt' (./HalloWelt.hs)"

What could be the reason for that?

Thank you for any hint -

Best regards Hartmut


I think you need a "module HalloWelt where" at the top of your file.

Oh, and I wasn't ignoring the question on web-devel, I just hadn't had a chance to look into it yet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜