Haskell 无法在linux上构建leksah 0.15.2.0
当我尝试构建最新的leksah(使用)时,会出现以下错误:Haskell 无法在linux上构建leksah 0.15.2.0,haskell,leksah,Haskell,Leksah,当我尝试构建最新的leksah(使用)时,会出现以下错误: src/IDE/TextEditor/CodeMirror.hs:225:38-56: Couldn't match type ‘Graphics.UI.Gtk.WebKit.JavaScriptCore.JSBase.OpaqueJSContext’ with ‘webkit-javascriptcore-0.13.1.1:Graphics.UI.Gtk.WebKit.JavaScript
src/IDE/TextEditor/CodeMirror.hs:225:38-56:
Couldn't match type ‘Graphics.UI.Gtk.WebKit.JavaScriptCore.JSBase.OpaqueJSContext’
with ‘webkit-javascriptcore-0.13.1.1:Graphics.UI.Gtk.WebKit.JavaScriptCore.JSBase.OpaqueJSContext’
NB: ‘Graphics.UI.Gtk.WebKit.JavaScriptCore.JSBase.OpaqueJSContext’
is defined in ‘Graphics.UI.Gtk.WebKit.JavaScriptCore.JSBase’
in package ‘webkitgtk3-javascriptcore-0.13.1.0’
‘webkit-javascriptcore-0.13.1.1:Graphics.UI.Gtk.WebKit.JavaScriptCore.JSBase.OpaqueJSContext’
is defined in ‘Graphics.UI.Gtk.WebKit.JavaScriptCore.JSBase’
in package ‘webkit-javascriptcore-0.13.1.1’
Expected type: JSContextRef
Actual type: Graphics.UI.Gtk.WebKit.JavaScriptCore.JSBase.JSGlobalContextRef
In the ‘cmContext’ field of a record
In the second argument of ‘($)’, namely ‘CodeMirrorState {..}’
cabal: Error: some packages failed to install:
leksah-0.15.2.0 failed during the building phase. The exception was:
ExitFailure 1
有人知道如何解决这个问题吗?你能给我们看看你的
ghc--version
,cabal--version
,ghc pkg list
,你是否尝试使用堆栈来支持上述建议。有一个stack.yaml
,这意味着在安装包webkit javascriptcore
后,如果点击stack build
,它应该可以工作,但它似乎不是最新版本的leksah的依赖项(或可传递依赖项)。至少,您应该安装在一个秘密沙箱中——您的全局包数据库的状态与leksah不兼容。几乎没有任何理由不再使用沙盒(或堆栈)-在全局包db中安装任何东西(尤其是当它具有100+依赖项时)只是自找麻烦。