packages feed

haskell-igraph-0.4.0: haskell-igraph.cabal

name:                haskell-igraph
version:             0.4.0
synopsis:            Haskell interface of the igraph library.
description:         igraph<"http://igraph.org/c/"> is a library for creating
                     and manipulating large graphs. This package provides the Haskell
                     interface of igraph.
license:             MIT
license-file:        LICENSE
author:              Kai Zhang
maintainer:          kai@kzhang.org
copyright:           (c) 2016-2018 Kai Zhang
category:            Math
build-type:          Simple
cabal-version:       >=1.24
extra-source-files:
  include/haskell_igraph.h
  include/bytestring.h
  include/haskell_attributes.h
  README.md
  ChangeLog.md

Flag graphics
  Description: Enable graphics output
  Default:     False

library
  exposed-modules:
    IGraph
    IGraph.Types
    IGraph.Mutable
    IGraph.Clique
    IGraph.Structure
    IGraph.Isomorphism
    IGraph.Community
    IGraph.Read
    IGraph.Motif
    IGraph.Layout
    IGraph.Generators
    IGraph.Exporter.GEXF
    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.Motif
    IGraph.Internal.Clique
    IGraph.Internal.Community
    IGraph.Internal.Layout

  other-modules:
    IGraph.Internal.C2HS

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

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

  build-depends:
      base >= 4.0 && < 5.0
    , bytestring >= 0.9
    , bytestring-lexing >= 0.5
    , cereal
    , cereal-conduit
    , colour
    , conduit >= 1.3.0
    , 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/haskell_igraph.c
    cbits/haskell_attributes.c
    cbits/bytestring.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.Attributes
    Test.Structure
    Test.Isomorphism
    Test.Motif
    Test.Utils

  default-language:    Haskell2010
  build-depends:
      base
    , haskell-igraph
    , cereal
    , conduit >= 1.3.0
    , data-ordlist
    , matrices
    , tasty
    , tasty-golden
    , tasty-hunit
    , random

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