Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/8.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.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 无法在linux上构建leksah 0.15.2.0_Haskell_Leksah - Fatal编程技术网

Haskell 无法在linux上构建leksah 0.15.2.0

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

当我尝试构建最新的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.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+依赖项时)只是自找麻烦。