Skip to content
  • Austin Seipp's avatar
    Add basic support for GHCJS · b372e8ea
    Austin Seipp authored
    
    
    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: default avatarLuite Stegeman <stegeman@gmail.com>
    Signed-off-by: default avatarAustin Seipp <aseipp@pobox.com>
    b372e8ea