我試圖建立在NixOS一個新Stack項目與GHCJS如下指令編譯器在http://docs.haskellstack.org/en/stable/ghcjs.html 我已經包含在我的stack.yaml文件中的新Stack項目下面的代碼行(全部在一行上,因爲標籤空間似乎給問題): # Compiler specifying the GHCJS compiler for this project
安裝ghcjs我通過安裝GHC棧(這樣stack ghc -- --version顯示GHC-7.10.3) $ stack install ghcjs
Run from outside a project, using implicit global project config
Using resolver: lts-5.2 from implicit global project's
我正在嘗試安裝GHCJS。當我運行cabal install ghcjs-dom,它告訴我 Cannot find gtk2hsC2hs
Please install `gtk2hs-buildtools` first and check that the install directory is in your PATH (e.g. HOME/.cabal/bin).
好了,我們開始吧,然
我想從一個IO a創建Behavior t a,與該IO動作將每次運行的行爲是sample d預期的語義: {- language FlexibleContexts #-}
import Reflex.Dom
import Control.Monad.Trans
onDemand :: (MonadWidget t m, MonadIO (PullM t)) => IO a -> m (B