Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/entity-framework/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Haskell Snap-web框架与动态重新编译_Haskell_Haskell Snap Framework - Fatal编程技术网

Haskell Snap-web框架与动态重新编译

Haskell Snap-web框架与动态重新编译,haskell,haskell-snap-framework,Haskell,Haskell Snap Framework,我正在使用Snap web框架构建一个web应用程序。我已经用snap init创建了一个项目 然后我安装了cabal-fdevelopment,运行了cabal,当我试图从chrome访问索引页面时,我看到了这个错误 有什么想法吗 A web handler threw an exception. Details: Unknown interpreter error: flags: '-static' not recognized 以下是dynamic loader的相关评论: -----

我正在使用Snap web框架构建一个web应用程序。我已经用snap init创建了一个项目

然后我安装了cabal-fdevelopment,运行了cabal,当我试图从chrome访问索引页面时,我看到了这个错误

有什么想法吗

A web handler threw an exception. Details:
Unknown interpreter error:

flags: '-static' not recognized

以下是dynamic loader的相关评论:

------------------------------------------------------------------------------
-- | Convert the command-line arguments passed in to options for the
-- hint interpreter. This is somewhat brittle code, based on a few
-- experimental datapoints regarding the structure of the command-line
-- arguments cabal produces.
遗憾的是,它仍然像我第一次写它时一样脆弱。这很容易被黑客破解,但我还是更喜欢一个更好的长期解决方案,而不仅仅是将解释器不支持的标志列入黑名单

如果您愿意修补系统上的库,您可以将
“-static”
添加到
Snap/Loader/Dynamic.hs
Snap/Loader Dynamic
包中
Snap/Loader/Dynamic.hs
第86行的黑名单中。否则,您将不得不等待新版本的发布。它已经在github上打了补丁,正在等待发布