ihaskell.cabal 7.15 KB
-- The name of the package.
name:                ihaskell

-- The package version.  See the Haskell package versioning policy (PVP) 
-- for standards guiding when and how versions should be incremented.
-- http://www.haskell.org/haskellwiki/Package_versioning_policy
-- PVP summary:      +-+------- breaking API changes
--                   | | +----- non-breaking API additions
--                   | | | +--- code changes with no API change
version:             0.8.3.0

-- A short (one-line) description of the package.
synopsis:            A Haskell backend kernel for the IPython project.

-- A longer description of the package.
description:         IHaskell is a Haskell backend kernel for the IPython project. This allows using Haskell via 
                     a console or notebook interface. Additional packages may be installed to provide richer data visualizations. 

-- URL for the project homepage or repository.
homepage:            http://github.com/gibiansky/IHaskell

-- The license under which the package is released.
license:             MIT

-- The file containing the license text.
license-file:        LICENSE

-- The package author(s).
author:              Andrew Gibiansky

-- An email address to which users can send suggestions, bug reports, and 
-- patches.
maintainer:          andrew.gibiansky@gmail.com

-- A copyright notice.
-- copyright:           

category:            Development

build-type:          Simple

-- Constraint on the version of Cabal needed to build this package.
cabal-version:       >=1.16

data-files: 
    html/kernel.js
    html/logo-64x64.png

flag binPkgDb
  default:             True
  description:         bin-package-db package needed (needed for GHC >= 7.10)

library
  hs-source-dirs:      src
  default-language:    Haskell2010
  build-depends:
                       aeson                >=0.7 && < 0.11,
                       base                 >=4.6 && < 4.9,
                       base64-bytestring    >=1.0,
                       bytestring           >=0.10,
                       cereal               >=0.3,
                       cmdargs              >=0.10,
                       containers           >=0.5,
                       directory            -any,
                       filepath             -any,
                       ghc                  >=7.6 || < 7.11,
                       ghc-parser           >=0.1.7,
                       ghc-paths            ==0.1.*,
                       haskeline            -any,
                       hlint                >=1.9 && <2.0,
                       haskell-src-exts     >=1.16 && < 1.18,
                       http-client          == 0.4.*,
                       http-client-tls      == 0.2.*,
                       mtl                  >=2.1,
                       parsec               -any,
                       process              >=1.1,
                       random               >=1.0,
                       shelly               >=1.5,
                       split                >= 0.2,
                       stm                  -any,
                       strict               >=0.3,
                       system-argv0         -any,
                       text                 >=0.11,
                       transformers         -any,
                       unix                 >= 2.6,
                       unordered-containers -any,
                       utf8-string          -any,
                       uuid                 >=1.3,
                       vector               -any,
                       ipython-kernel       >=0.7
  if flag(binPkgDb)
    build-depends:       bin-package-db

  exposed-modules: IHaskell.Display
                   IHaskell.Convert
                   IHaskell.Convert.Args
                   IHaskell.Convert.IpynbToLhs
                   IHaskell.Convert.LhsToIpynb
                   IHaskell.Eval.Completion
                   IHaskell.Eval.Inspect
                   IHaskell.Eval.Evaluate
                   IHaskell.Eval.Info
                   IHaskell.Eval.Lint
                   IHaskell.Eval.Parser
                   IHaskell.Eval.Hoogle
                   IHaskell.Eval.ParseShell
                   IHaskell.Eval.Widgets
                   IHaskell.Eval.Util
                   IHaskell.Publish
                   IHaskell.IPython
                   IHaskell.IPython.Stdin
                   IHaskell.Flags
                   IHaskell.Types
                   IHaskell.BrokenPackages
                   IHaskell.CSS
                   Paths_ihaskell
  other-modules: 
                   IHaskellPrelude
                   StringUtils

  default-extensions:
      NoImplicitPrelude
      DoAndIfThenElse
      OverloadedStrings
      ExtendedDefaultRules

executable ihaskell
  -- .hs or .lhs file containing the Main module.
  main-is:             Main.hs
  hs-source-dirs: main
  other-modules: 
                   IHaskellPrelude
  ghc-options: -threaded
  
  -- Other library packages from which modules are imported.
  default-language:    Haskell2010
  build-depends:       
                       ihaskell -any,
                       base                 >=4.6 && < 4.9,
                       text                 >=0.11,
                       transformers         -any,
                       ghc                  >=7.6 || < 7.11,
                       process              >=1.1,
                       aeson                >=0.7 && < 0.11,
                       bytestring           >=0.10,
                       containers           >=0.5,
                       strict               >=0.3,
                       unix                 >= 2.6,
                       directory            -any,
                       ipython-kernel       >=0.7

  if flag(binPkgDb)
    build-depends:       bin-package-db

  default-extensions:
      NoImplicitPrelude
      DoAndIfThenElse
      OverloadedStrings
      ExtendedDefaultRules

Test-Suite hspec
    Type: exitcode-stdio-1.0
    Ghc-Options: -threaded
    Main-Is: Hspec.hs
    default-language: Haskell2010
    build-depends:
        ihaskell,
        aeson >=0.6 && < 0.11,
        base >=4.6 && < 4.9,
        base64-bytestring >=1.0,
        bytestring >=0.10,
        cereal >=0.3,
        cmdargs >=0.10,
        containers >=0.5,
        directory -any,
        filepath -any,
        ghc >=7.6 && < 7.11,
        ghc-parser >=0.1.7,
        ghc-paths ==0.1.*,
        haskeline -any,
        hlint >=1.9 && <2.0,
        haskell-src-exts     >=1.16 && < 1.18,
        hspec -any,
        HUnit -any,
        mtl >=2.1,
        parsec -any,
        process >=1.1,
        random >=1.0,
        shelly >=1.5,
        split >= 0.2,
        stm -any,
        strict >=0.3,
        system-argv0 -any,
        text >=0.11,
        http-client == 0.4.*,
        http-client-tls == 0.2.*,
        transformers -any,
        unix >= 2.6,
        unordered-containers -any,
        utf8-string -any,
        uuid >=1.3,
        vector -any,
        setenv ==0.1.*,
        ipython-kernel >= 0.7

    if flag(binPkgDb)
        build-depends: bin-package-db

    default-extensions:
        DoAndIfThenElse
        OverloadedStrings
        ExtendedDefaultRules


source-repository head
  type:     git
  location: git://github.com/gibiansky/IHaskell.git