Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
module Main where | ||
|
||
import Language.UHC.JScript.Assorted (alert , _alert) | ||
import Language.UHC.JScript.Types | ||
|
||
import Language.UHC.JScript.ECMA.String | ||
import Language.UHC.JScript.Assorted (alert) | ||
import Language.UHC.JScript.Types (fromJS) | ||
|
||
|
||
foreign import jscript "window.location.host" | ||
windowLocationHost :: JSString | ||
import Language.UHC.JScript.ECMA.String (JSString) | ||
|
||
foreign import jscript "window.location.href" | ||
windowHref :: JSString | ||
|
||
main :: IO () | ||
main = do _alert windowLocationHost | ||
alert (fromJS windowLocationHost) | ||
|
||
|
||
main = alert (fromJS windowHref) |