Fix build
This commit is contained in:
parent
6f98f31b5c
commit
7c74723ba7
3 changed files with 10 additions and 7 deletions
|
@ -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!"
|
||||
someFunc = js_alert "Hello from GHCJS!"
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
location: https://github.com/githubuser/ui
|
||||
|
|
Loading…
Reference in a new issue