summaryrefslogtreecommitdiff
path: root/compiler/utils
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2013-09-06 13:18:11 -0500
committerAustin Seipp <aseipp@pobox.com>2013-09-06 13:18:11 -0500
commitb372e8eadcbb6abe00d7a7b1198b656a29dcb1ce (patch)
treefef67897d8e6ab0aa9370c96b871ba6b91ecadf1 /compiler/utils
parentdf614779c356ea6aef29367a8dd1ca819b03a1d1 (diff)
downloadhaskell-b372e8eadcbb6abe00d7a7b1198b656a29dcb1ce.tar.gz
Add basic support for GHCJS
This patch encompasses most of the basic infrastructure for GHCJS. It includes: * A new extension, -XJavaScriptFFI * A new architecture, ArchJavaScript * Parser and lexer support for 'foreign import javascript', only available under -XJavaScriptFFI, using ArchJavaScript. * As a knock-on, there is also a new 'WayCustom' constructor in DynFlags, so clients of the GHC API can add custom 'tags' to their built files. This should be useful for other users as well. The remaining changes are really just the resulting fallout, making sure all the cases are handled appropriately for DynFlags and Platform. Authored-by: Luite Stegeman <stegeman@gmail.com> Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'compiler/utils')
-rw-r--r--compiler/utils/Platform.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/utils/Platform.hs b/compiler/utils/Platform.hs
index 617e691ddf..f69bb4cdf6 100644
--- a/compiler/utils/Platform.hs
+++ b/compiler/utils/Platform.hs
@@ -54,6 +54,7 @@ data Arch
| ArchAlpha
| ArchMipseb
| ArchMipsel
+ | ArchJavaScript
deriving (Read, Show, Eq)
isARM :: Arch -> Bool