packages feed

ihaskell-0.9.0.0: ihaskell.cabal

-- 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.9.0.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                >=1.0,
                       base                 >=4.6,
                       base64-bytestring    >=1.0,
                       bytestring           >=0.10,
                       cereal               >=0.3,
                       cmdargs              >=0.10,
                       containers           >=0.5,
                       directory            -any,
                       filepath             -any,
                       ghc                  >=7.6,
                       ghc-parser           >=0.1.7,
                       ghc-paths            >=0.1,
                       haskeline            -any,
                       hlint                >=1.9,
                       haskell-src-exts     >=1.16,
                       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.8.4
  if flag(binPkgDb)
    build-depends:       bin-package-db

  if impl(ghc >= 8.0)
    build-depends:     ghc-boot             >=8.0 && <8.1

  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

executable ihaskell
  -- .hs or .lhs file containing the Main module.
  main-is:             Main.hs
  hs-source-dirs: main
  other-modules: 
                   IHaskellPrelude
                   Paths_ihaskell
  ghc-options: -threaded
  
  -- Other library packages from which modules are imported.
  default-language:    Haskell2010
  build-depends:       
                       ihaskell -any,
                       base                 >=4.6 && < 4.10,
                       text                 >=0.11,
                       transformers         -any,
                       ghc                  >=7.6 || < 7.11,
                       process              >=1.1,
                       aeson                >=0.7,
                       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

Test-Suite hspec
    Type: exitcode-stdio-1.0
    Ghc-Options: -threaded
    Main-Is: Hspec.hs
    hs-source-dirs: src/tests
    other-modules:
        IHaskell.Test.Eval
        IHaskell.Test.Completion
        IHaskell.Test.Util
        IHaskell.Test.Parser
    default-language: Haskell2010
    build-depends:
        base,
        ihaskell,
        here,
        hspec,
        hspec-contrib,
        HUnit,
        ghc,
        ghc-paths,
        transformers,
        directory,
        text,
        shelly,
        setenv

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

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