Haskell Frp包的windows安装?

Haskell Frp包的windows安装?,haskell,reactive-programming,frp,Haskell,Reactive Programming,Frp,我试图在Windows上安装反应式香蕉软件包,但收效甚微。 它似乎知道软件包,但安装失败。 有什么提示吗 >cabal install Reactive Resolving dependencies... ... cabal: Error: some packages failed to install: category-extras-0.53.5 failed during the building phase. The exception was: ExitFailure 1 rea

我试图在Windows上安装反应式香蕉软件包,但收效甚微。 它似乎知道软件包,但安装失败。 有什么提示吗

>cabal install Reactive
Resolving dependencies...
...
cabal: Error: some packages failed to install:
category-extras-0.53.5 failed during the building phase. The exception was:
ExitFailure 1
reactive-0.11.5 depends on category-extras-0.53.5 which failed to install.

>cabal install category-extras
Resolving dependencies...
Configuring category-extras-0.53.5...
...
cabal: Error: some packages failed to install:
category-extras-0.53.5 failed during the building phase. The exception was:
ExitFailure 1

>cabal install reactive-banana-wx
Resolving dependencies...
Downloading monads-tf-0.1.0.0...
Warning: monads-tf.cabal: A package using 'cabal-version: >=1.2.3' must use
section syntax. See the Cabal user guide for details.
...
setup.exe: wx-config: does not exist
cabal: Error: some packages failed to install:
reactive-banana-wx-0.3.0.1 depends on wxcore-0.12.1.7 which failed to install.
wx-0.12.1.6 depends on wxcore-0.12.1.7 which failed to install.
wxcore-0.12.1.7 failed during the configure step. The exception was:
ExitFailure 1

etc...


好的,我安装了所有的wx东西-采取了几个步骤。wx配置,然后是wxWidgets,然后安装Haskell部件(wx、wxcore、reactive banana.wx)。但基本的反应式和类别附加功能仍然无法实现上述功能。-第39步(共99步)的类别附加失败:

[39 of 99] Compiling Control.Monad.Either ( src\Control\Monad\Either.hs, dist\bu
ild\Control\Monad\Either.o )

src\Control\Monad\Either.hs:44:10:
    Duplicate instance declarations:
      instance Monad (Either e)
        -- Defined at src\Control\Monad\Either.hs:44:10-25
      instance Monad (Either e) -- Defined in Control.Monad.Instances

src\Control\Monad\Either.hs:49:10:
    Duplicate instance declarations:
      instance Applicative (Either e)
        -- Defined at src\Control\Monad\Either.hs:49:10-31
      instance Applicative (Either e) -- Defined in Control.Applicative

src\Control\Monad\Either.hs:53:10:
    Duplicate instance declarations:
      instance MonadFix (Either e)
        -- Defined at src\Control\Monad\Either.hs:53:10-28
      instance MonadFix (Either e) -- Defined in Control.Monad.Fix
cabal: Error: some packages failed to install:
category-extras-0.53.5 failed during the building phase. The exception was:
ExitFailure 1

更新:

我发现Haskell的Wx宇宙有点混乱。关于这一点,有很多注释和关于windows上wx和wxHaskell问题的描述,在一些建议中需要GHC的旧版本,等等。这些代码与当前的MSoft编译器不兼容,因此需要其他编译器安装,等等。经过几个小时的探索,所有这些都让我相当失望。我确实安装了wx config、wxPack、wxWidgets,然后是wxHaskell,然后是从cabal wx&wxcore;所有报告的成功-仍然失败(未找到wxmsw28_gcc.dll;尽管它在库中)。他们的初始测试(样品/对照品…)失败。wxWidgets和wxHaskell页面上的所有示例链接以及更多链接都被破坏。重新启动后(?!)它似乎确实运行了一些测试——所以我现在希望成功

我希望有一个魔术般的“apt get install”体验

对于FRP——FRP示例(在leksah中)给出了很多错误消息:“未找到用于…”的链接目的地,但到目前为止确实运行

总而言之,根据我的经验,wxHaskell和FRP似乎不太容易在窗户上使用。当然,我不会把它分配给一个类,作为Haskell易用性和实用性的一个很好的例子


我很欣赏这些软件包所涉及的复杂性和工作,我并不想抱怨——只是一份经验报告。也许wxHaskell包并不常用,或者..???

看起来有一个wx config的windows端口。如果它不在wx内核中,我会感到惊讶。您是否安装了WX c库?它是必需的-Haskell包只是绑定到C库。

注意,您必须在“反应性香蕉”中包含“香蕉”。-)


换句话说,
Reactive
不是您要寻找的包,
Reactive香蕉
是。(反应式软件包是Conal Elliott的一个较老的实验,具有类似的目标,但它有一些系统性错误,现在有点崩溃。)

看起来您需要wx配置,它可能是wxWindows的一部分?好的,我安装了所有wx东西-采取了几个步骤。wx配置,然后是wxWidgets,然后安装Haskell部件(wx、wxcore、reactive banana.wx)。但是基本的反应式和分类额外功能仍然像上面一样失败。我想我在sourceforge找到了一个二进制下载,奇怪的是,他们的主页上没有提到它(!)。添加您指向的wx配置没有任何区别。@guthrie然后自己编译?我想这就是他们推荐的,谢谢-这就解决了问题!另一个软件包(见上文)似乎存在安装问题,很高兴能避免这些问题。注意:在我的Debian上“apt get install libwxgtk2.8-dev”解决了类似的错误。
cabal install reactive-banana
cabal install reactive-banana-wx