简体   繁体   English

构建堆栈时出现Haskell Reflex-Dom JSaddle错误

[英]Haskell Reflex-Dom JSaddle error when stack building

Wanted to give Reflex-Dom a try but get an error from the jsaddle package when stack-building. 想要尝试Reflex-Dom,但是在构建堆栈时从jsaddle包中得到一个错误。 Would love some tips on how to resolve this. 很想知道如何解决此问题的一些技巧。

/private/var/folders/m2/qwhdrn_d46z99_3vxchdwn7r0000gn/T/stack6036/jsaddle-0.9.5.0/src/Language/Javascript/JSaddle/Types.hs:190:5-34: error:
    • No instance for (Control.Monad.Fail.MonadFail JSM)
        arising from a do statement
        with the failable pattern ‘SyncResult’
    • In a stmt of a 'do' block: SyncResult <- sendCommand Sync
      In the expression:
        do SyncResult <- sendCommand Sync
           return ()
      In an equation for ‘syncPoint’:
          syncPoint
            = do SyncResult <- sendCommand Sync
                 return ()
    |
190 |     SyncResult <- sendCommand Sync
    | 

Cabal config: 阴谋配置:

executable reflexdom
  main-is: Main.hs
  other-modules:
      Paths_ReflexDom
  hs-source-dirs:
      app
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      ReflexDom
    , base >=4.7 && <5
    , reflex-dom >= 0.4 
    , reflex >= 0.5
  allow-newer: true
  default-language: Haskell2010

stack.yaml deps: stack.yaml部门:

extra-deps: 
- reflex-0.5
- reflex-dom-0.4
- jsaddle-wkwebview-0.9.4.0
- ref-tf-0.4.0.1
- reflex-dom-core-0.4
- ghcjs-dom-0.9.2.0
- zenc-0.1.1
- ghcjs-dom-jsaddle-0.9.2.0
- jsaddle-dom-0.9.2.0
- jsaddle-0.9.5.0

allow-newer: true 允许更新:true

您使用的GHC版本太新,请使用lts-12或更低版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM