簡體   English   中英

Snap Web框架和動態重新編譯

[英]Snap web framework and dynamic recompilation

我正在使用Snap Web框架構建Web應用程序。 我創建了一個帶有snap init的項目。

然后我進行cabal install -fdevelopment,cabal run,當我嘗試從chrome訪問索引頁面時,我看到此錯誤。

有任何想法嗎?

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

flags: '-static' not recognized

這是動態加載程序的相關注釋:

------------------------------------------------------------------------------
-- | 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.

可悲的是,它仍然和我剛寫時一樣脆弱。 這很容易被黑客修補,但我仍然希望有一個更好的長期解決方案,而不僅僅是將解釋器不支持的標志列入黑名單。

如果您願意在系統上修補庫,則可以在snap-loader-dynamic軟件包中的Snap/Loader/Dynamic.hs的第86行的黑名單中添加"-static" 否則,您將不得不等到新版本發布。 它已在github上修補,僅等待發布。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM