name:                ipython-kernel
version:             0.8.4.0
synopsis:            A library for creating kernels for IPython frontends

description:         ipython-kernel is a library for communicating with frontends for the interactive IPython framework. It is used extensively in IHaskell, the interactive Haskell environment.
homepage:            http://github.com/gibiansky/IHaskell
license:             MIT
license-file:        LICENSE
author:              Andrew Gibiansky
maintainer:          andrew.gibiansky@gmail.com

category:            Development
build-type:          Simple

cabal-version:       >=1.16

data-dir:            example-data
data-files:          calc_profile.tar


flag examples
  description: Build example programs
  default:     False


library
  exposed-modules: IHaskell.IPython.Kernel
                   IHaskell.IPython.Types
                   IHaskell.IPython.ZeroMQ
                   IHaskell.IPython.Message.Writer
                   IHaskell.IPython.Message.Parser
                   IHaskell.IPython.Message.UUID
                   IHaskell.IPython.EasyKernel
  other-extensions:    OverloadedStrings
  hs-source-dirs:      src
  default-language:    Haskell2010
  build-depends:       base            ,
                       aeson           ,
                       bytestring      ,
                       cereal          ,
                       containers      ,
                       directory       ,
                       temporary       ,
                       filepath        ,
                       process         ,
                       mtl             ,
                       text            ,
                       transformers    ,
                       unordered-containers,
                       uuid            ,
                       zeromq4-haskell ,
                       SHA

-- Example program
executable simple-calc-example
  hs-source-dirs: examples
  main-is:        Calc.hs
  build-depends:  ipython-kernel,
                  base           ,
                  filepath       ,
                  mtl            ,
                  parsec         ,
                  text           ,
                  transformers

  if !flag(examples)
    buildable: False

executable fun-calc-example
  hs-source-dirs: examples
  main-is:        Simple.hs
  build-depends:  ipython-kernel,
                  base           ,
                  filepath       ,
                  mtl            ,
                  parsec         ,
                  text           ,
                  transformers

  if !flag(examples)
    buildable: False