packages feed

haste-compiler-0.4: haste-compiler.cabal

Name:           haste-compiler
Version:        0.4
License:        BSD3
License-File:   LICENSE
Synopsis:       Haskell To ECMAScript compiler
Description:    This package provides a featureful compiler from Haskell to
                Javascript. It generates small, fast code, makes use of
                standard Haskell libraries, integrates with Cabal, supports
                most GHC extensions and works on Windows, Linux and OSX.
                Bug reports are highly appreciated.
Category:       Javascript, Compiler, Web
Cabal-Version:  >= 1.10
Build-Type:     Custom
Author:         Anton Ekblad <anton@ekblad.cc>
Maintainer:     anton@ekblad.cc
Homepage:       http://github.com/valderman/haste-compiler
Bug-reports:    http://github.com/valderman/haste-compiler/issues
Stability:      Experimental

Data-Dir:
    lib

Data-Files:
    rts.js
    stdlib.js
    MVar.js
    StableName.js
    Integer.js
    Int64.js
    md5.js
    array.js
    pointers.js
    unicode.js
    cheap-unicode.js
    debug.js
    Canvas.js
    Handle.js

Flag portable
    Description:
        Install Haste into a self-contained directory. Package databases are
        still local to each user. Primarily useful for global installs.
    Default: False

source-repository head
    type:       git
    location:   https://github.com/valderman/haste-compiler.git

Executable haste-boot
    Main-Is: haste-boot.hs
    Other-Modules:
        Haste.Version
        Haste.Environment
    Hs-Source-Dirs: src
    if flag(portable)
        CPP-Options: -DPORTABLE
        if os(windows)
          GHC-Options: -static -optl-static
        else
          GHC-Options: -static -optl-static -optl-pthread
    Build-Depends:
        ghc,
        base < 5,
        bytestring,
        tar,
        bzlib,
        transformers,
        network,
        HTTP,
        shellmate >= 0.1.5,
        ghc-paths,
        ghc,
        directory
    Default-Language: Haskell98

Executable hastec
    Hs-Source-Dirs: src
    GHC-Options: -Wall -O2
    if flag(portable)
        CPP-Options: -DPORTABLE
        if os(windows)
          GHC-Options: -static -optl-static
        else
          GHC-Options: -static -optl-static -optl-pthread
    Build-Depends:
        base < 5,
        ghc-prim,
        ghc >= 7.4,
        mtl,
        binary,
        containers,
        data-default,
        bytestring >= 0.9.2.1,
        utf8-string,
        blaze-builder,
        array,
        ghc-paths,
        random,
        system-fileio,
        shellmate >= 0.1.5,
        either,
        directory
    Main-Is:
        Main.hs
    Other-Modules:
        Haste
        Haste.Args
        Haste.Opts
        Haste.Version
        Haste.Environment
        Haste.Config
        Haste.Monad
        Haste.PrimOps
        Haste.Module
        Haste.Linker
        Haste.Builtins
        Haste.Errors
        Haste.CodeGen
        Data.JSTarget
        Data.JSTarget.AST
        Data.JSTarget.Binary
        Data.JSTarget.Constructors
        Data.JSTarget.Op
        Data.JSTarget.Optimize
        Data.JSTarget.PP
        Data.JSTarget.Print
        Data.JSTarget.Traversal
    default-language: Haskell98

Executable haste-inst
    Main-Is: haste-inst.hs
    Hs-Source-Dirs: src
    if flag(portable)
        CPP-Options: -DPORTABLE
        if os(windows)
          GHC-Options: -static -optl-static
        else
          GHC-Options: -static -optl-static -optl-pthread
    Build-Depends:
        base < 5,
        shellmate,
        ghc-paths,
        ghc,
        directory
    default-language: Haskell98

Executable haste-pkg
    Main-Is: haste-pkg.hs
    Hs-Source-Dirs: src
    if flag(portable)
        CPP-Options: -DPORTABLE
        if os(windows)
          GHC-Options: -static -optl-static
        else
          GHC-Options: -static -optl-static -optl-pthread
    Build-Depends:
        base < 5,
        shellmate,
        ghc-paths,
        ghc,
        process,
        directory
    default-language: Haskell98

Executable haste-install-his
    Main-Is: haste-install-his.hs
    Hs-Source-Dirs: src
    if flag(portable)
        CPP-Options: -DPORTABLE
        if os(windows)
          GHC-Options: -static -optl-static
        else
          GHC-Options: -static -optl-static -optl-pthread
    Build-Depends:
        base < 5,
        shellmate,
        ghc-paths,
        ghc,
        directory
    default-language: Haskell98

Executable haste-copy-pkg
    Main-Is: haste-copy-pkg.hs
    Other-Modules:
        Haste.Environment
    Hs-Source-Dirs: src
    if flag(portable)
        CPP-Options: -DPORTABLE
        if os(windows)
          GHC-Options: -static -optl-static
        else
          GHC-Options: -static -optl-static -optl-pthread
    Build-Depends:
        base < 5,
        shellmate >= 0.1.5,
        ghc-paths,
        ghc,
        directory
    default-language: Haskell98

Library
    Hs-Source-Dirs: libraries/haste-lib/src, src
    GHC-Options: -Wall -O2
    Exposed-Modules:
        Haste
        Haste.App
        Haste.App.Concurrent
        Haste.Binary
        Haste.Compiler
        Haste.JSON
        Haste.Ajax
        Haste.DOM
        Haste.Prim
        Haste.Concurrent
        Haste.Graphics.Canvas
        Haste.Foreign
        Haste.Serialize
        Haste.Parsing
        Haste.WebSockets
        Haste.LocalStorage
    Other-Modules:
        Haste.JSType
        Haste.Callback
        Haste.Compiler.Flags
        Haste.Environment
        Paths_haste_compiler
        Haste.Hash
        Haste.Random
        Haste.Concurrent.Monad
        Haste.Concurrent.Ajax
        Haste.App.Client
        Haste.App.Events
        Haste.App.Monad
        Haste.App.Protocol
        Haste.Binary.Get
        Haste.Binary.Put
        Haste.Binary.Types
    Build-Depends:
        transformers,
        monads-tf,
        containers,
        base < 5,
        random,
        binary,
        data-binary-ieee754,
        bytestring >= 0.9.2.1,
        websockets >= 0.8,
        utf8-string,
        -- For Haste.Compiler
        shellmate >= 0.1.5,
        data-default,
        directory,
        filepath,
        process,
        ghc-paths,
        ghc,
        directory
    Default-Language: Haskell98