Created
November 24, 2012 22:39
-
-
Save cosmo0920/4141690 to your computer and use it in GitHub Desktop.
fay langを使ってRedirect
This file contains hidden or 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
$ fay --no-ghc redirect.hs --html-wrapper |
This file contains hidden or 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
module HTML.Redirect where | |
import Language.Fay.FFI | |
import Language.Fay.Prelude | |
main :: Fay () | |
main = redirect "http://www.bing.com/" | |
redirect :: String -> Fay () | |
redirect = ffi "window.location = %1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment