From 7c74723ba779d241a19898986e5b873579f12217 Mon Sep 17 00:00:00 2001 From: Matt Parsons Date: Fri, 13 Nov 2015 18:46:41 -0500 Subject: [PATCH] Fix build --- ui/src/Lib.hs | 3 ++- ui/stack.yaml | 11 ++++++----- ui/ui.cabal | 3 ++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ui/src/Lib.hs b/ui/src/Lib.hs index 2d36762..92799bb 100644 --- a/ui/src/Lib.hs +++ b/ui/src/Lib.hs @@ -4,9 +4,10 @@ module Lib ) where import GHCJS.Foreign () +import GHCJS.DOM () import GHCJS.Types foreign import javascript unsafe "window.alert($1)" js_alert :: JSString -> IO () someFunc :: IO () -someFunc = js_alert "Hello from GHCJS!" \ No newline at end of file +someFunc = js_alert "Hello from GHCJS!" diff --git a/ui/stack.yaml b/ui/stack.yaml index 9f028f9..bdf71f6 100644 --- a/ui/stack.yaml +++ b/ui/stack.yaml @@ -1,9 +1,10 @@ -resolver: lts-3.13 -compiler: ghcjs-0.2.0.20151001_ghc-7.10.2 +resolver: ghcjs-0.2.0.20151029_ghc-7.10.2 compiler-check: match-exact setup-info: ghcjs: - source: - ghcjs-0.2.0.20151001_ghc-7.10.2: - url: "https://github.com/fizruk/ghcjs/releases/download/v0.2.0.20151001/ghcjs-0.2.0.20151001.tar.gz" + source: + ghcjs-0.2.0.20151029_ghc-7.10.2: + url: "https://github.com/nrolland/ghcjs/releases/download/v0.2.0.20151029/ghcjs-0.2.0.20151029.tar.gz" +extra-deps: + - 'ghcjs-dom-0.2.3.0' diff --git a/ui/ui.cabal b/ui/ui.cabal index 6c2e5e7..32d6c47 100644 --- a/ui/ui.cabal +++ b/ui/ui.cabal @@ -19,6 +19,7 @@ library exposed-modules: Lib build-depends: base >= 4.7 && < 5 , ghcjs-base + , ghcjs-dom default-language: Haskell2010 executable ui-output @@ -32,4 +33,4 @@ executable ui-output source-repository head type: git - location: https://github.com/githubuser/ui \ No newline at end of file + location: https://github.com/githubuser/ui