haskell-igraph.cabal 2.28 KB
-- Initial igraph-bindings.cabal generated by cabal init.  For further
-- documentation, see http://haskell.org/cabal/users-guide/

name:                haskell-igraph
version:             0.2.0
synopsis:            Imcomplete igraph bindings
description:         This is an attempt to create a complete bindings for the
                     igraph<"http://igraph.org/c/"> library. Related work:
                     https://hackage.haskell.org/package/igraph.
license:             MIT
license-file:        LICENSE
author:              Kai Zhang
maintainer:          kai@kzhang.org
copyright:           (c) 2016 Kai Zhang
category:            Math
build-type:          Simple
cabal-version:       >=1.24

Flag graphics
  Description: Enable graphics output
  Default:     False

library
  exposed-modules:
    IGraph.Internal.Initialization
    IGraph.Internal.Constants
    IGraph.Internal.Arpack
    IGraph.Internal.Data
    IGraph.Internal.Graph
    IGraph.Internal.Attribute
    IGraph.Internal.Isomorphism
    IGraph.Internal.Selector
    IGraph.Internal.Structure
    IGraph.Internal.Clique
    IGraph.Internal.Community
    IGraph.Internal.Layout
    IGraph
    IGraph.Mutable
    IGraph.Clique
    IGraph.Structure
    IGraph.Isomorphism
    IGraph.Community
    IGraph.Read
    IGraph.Motif
    IGraph.Layout
    IGraph.Generators
    IGraph.Exporter.GEXF

  if flag(graphics)
    exposed-modules: IGraph.Exporter.Graphics

  if flag(graphics)
    build-depends: diagrams-lib, diagrams-cairo

  build-depends:
      base >=4.0 && <5.0
    , binary
    , bytestring >=0.9
    , bytestring-lexing >=0.5
    , colour
    , primitive
    , unordered-containers
    , hashable
    , hxt
    , split
    , data-default-class

  extra-libraries:     igraph
  hs-source-dirs:      src
  default-language:    Haskell2010
  build-tools:         c2hs >=0.25.0
  c-sources:           cbits/haskelligraph.c
  include-dirs:        include

test-suite tests
  type: exitcode-stdio-1.0
  hs-source-dirs: tests
  main-is: test.hs
  other-modules:
    Test.Basic
    Test.Structure
    Test.Utils

  default-language:    Haskell2010
  build-depends:
      base
    , haskell-igraph
    , tasty
    , tasty-golden
    , tasty-hunit
    , random

source-repository  head
  type: git
  location: https://github.com/kaizhang/haskell-igraph.git