Fix build

This commit is contained in:
Matt Parsons 2015-11-13 18:46:41 -05:00
parent 6f98f31b5c
commit 7c74723ba7
3 changed files with 10 additions and 7 deletions

View file

@ -4,9 +4,10 @@ module Lib
) where ) where
import GHCJS.Foreign () import GHCJS.Foreign ()
import GHCJS.DOM ()
import GHCJS.Types import GHCJS.Types
foreign import javascript unsafe "window.alert($1)" js_alert :: JSString -> IO () foreign import javascript unsafe "window.alert($1)" js_alert :: JSString -> IO ()
someFunc :: IO () someFunc :: IO ()
someFunc = js_alert "Hello from GHCJS!" someFunc = js_alert "Hello from GHCJS!"

View file

@ -1,9 +1,10 @@
resolver: lts-3.13 resolver: ghcjs-0.2.0.20151029_ghc-7.10.2
compiler: ghcjs-0.2.0.20151001_ghc-7.10.2
compiler-check: match-exact compiler-check: match-exact
setup-info: setup-info:
ghcjs: ghcjs:
source: source:
ghcjs-0.2.0.20151001_ghc-7.10.2: ghcjs-0.2.0.20151029_ghc-7.10.2:
url: "https://github.com/fizruk/ghcjs/releases/download/v0.2.0.20151001/ghcjs-0.2.0.20151001.tar.gz" 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'

View file

@ -19,6 +19,7 @@ library
exposed-modules: Lib exposed-modules: Lib
build-depends: base >= 4.7 && < 5 build-depends: base >= 4.7 && < 5
, ghcjs-base , ghcjs-base
, ghcjs-dom
default-language: Haskell2010 default-language: Haskell2010
executable ui-output executable ui-output
@ -32,4 +33,4 @@ executable ui-output
source-repository head source-repository head
type: git type: git
location: https://github.com/githubuser/ui location: https://github.com/githubuser/ui