packages feed

hgraph-1.10.0.0: hgraph.cabal

-- Initial hgraph.cabal generated by cabal init.  For further
-- documentation, see http://haskell.org/cabal/users-guide/

name:                hgraph
version:             1.10.0.0
synopsis:            Tools for working on (di)graphs.
description:         A collection of tools for generating and working on directed and undirected graphs.
                     Algorithms are written using typeclasses in order to be data-structure independent.

                     It is also possible to easily import and export graphs using the Graphviz syntax.
license:             GPL-3
license-file:        LICENSE
author:              Marcelo Garlet Milani
maintainer:          marcelogmillani@gmail.com
-- copyright:
category:            Data
build-type:          Simple
extra-source-files:  ChangeLog.md
cabal-version:       >=1.10

library
  exposed-modules: HGraph.Directed
                   HGraph.Directed.AdjacencyMap
                   HGraph.Directed.Connectivity
                   HGraph.Directed.Connectivity.Basic
                   HGraph.Directed.Connectivity.Flow
                   HGraph.Directed.Connectivity.IntegralLinkage
                   HGraph.Directed.Connectivity.OneWayWellLinkedness
                   HGraph.Directed.Connectivity.OneWayWellLinkedness.Internal
                   HGraph.Directed.EditDistance.Acyclic.ArcDeletion
                   HGraph.Directed.EditDistance.Acyclic.ArcDeletion.Internal
                   HGraph.Directed.EditDistance.Acyclic.VertexDeletion
                   HGraph.Directed.EditDistance.Acyclic.VertexDeletion.Internal
                   HGraph.Directed.Generator
                   HGraph.Directed.Generator.Hereditary
                   HGraph.Directed.Generator.Hereditary.Internal
                   HGraph.Directed.Load
                   HGraph.Directed.Output
                   HGraph.Directed.PathAnonymity
                   HGraph.Directed.Packing.Cycles
                   HGraph.Directed.Packing.Cycles.Internal
                   HGraph.Directed.TopologicalMinor
                   HGraph.Directed.Subgraph
                   HGraph.Undirected
                   HGraph.Undirected.AdjacencyMap
                   HGraph.Undirected.Solvers.VertexCover
                   HGraph.Undirected.Solvers.Treedepth
                   HGraph.Undirected.Solvers.IndependentSet
                   HGraph.Undirected.Generator
                   HGraph.Undirected.Expanders
                   HGraph.Undirected.Load
                   HGraph.Undirected.Layout.SpringModel
                   HGraph.Undirected.Output
                   HGraph.Utils
                   HGraph.Parallel
  other-modules:   HGraph.Debugging
  default-extensions:  TypeSynonymInstances, DoAndIfThenElse, GADTs
  build-depends:       base >=4.11 && <5,
                       array >= 0.5 && < 1.0,
                       containers >= 0.6.7 && < 1.0,
                       happy-dot >= 1.0.0 && < 2.0,
                       linear >= 1.21 && < 2.0,
                       mtl >= 2.3.1 && < 3.0,
                       random >= 1.2.1 && < 2.0,
                       say >= 0.1.0 && < 1.0,
                       transformers >= 0.6.1 && < 1.0
  hs-source-dirs:      src
  default-language:    Haskell2010

source-repository head
  type:     git
  location: git@gitlab.com:mgmillani/hgraph.git

--library hgraph-lib
--  exposed-modules: HGraph.Directed, HGraph.Directed.AdjacencyMap, HGraph.Directed.Connectivity
--                   HGraph.Directed.Load
--                   HGraph.Output
--                   HGraph.Undirected, HGraph.Undirected.AdjacencyMap
--                   HGraph.Undirected.Solvers.VertexCover
--                   HGraph.Undirected.Solvers.Treedepth
--                   HGraph.Undirected.Generator
--                   HGraph.Undirected.Expanders
--                   HGraph.Undirected.Load
--                   HGraph.Undirected.Layout.SpringModel
--  -- other-modules:
--  default-extensions:  TypeSynonymInstances, DoAndIfThenElse, GADTs
--  build-depends:       base >=4.11 && <5, containers >= 0.5, happy-dot >= 0.1, transformers >= 0.5, mtl, random, linear >= 1.21, array >= 0.5
--  hs-source-dirs:      src
--  default-language:    Haskell2010


--executable hgraph-viewer
--  main-is:             Main.hs
--  other-modules:       HGraph.Simulation HGraph.Geometry
--  -- other-extensions:
--  build-depends:       base >=4.8 && <5, transformers >= 0.5, containers >= 0.5.9, directory >= 1.3, hgraph-lib, OpenGL >= 3.0, linear >= 1.21, bytestring >= 0.10, vector >= 0.11, sdl2 >= 2.1 
--  hs-source-dirs:      viewer
--  default-language:    Haskell2010

test-suite test-adjacency-map
  main-is:          AdjacencyMap.hs
  hs-source-dirs:   tests/Graph
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

test-suite test-directed-adjacency-map
  main-is:          AdjacencyMap.hs
  hs-source-dirs:   tests/Digraph
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

test-suite test-vertex-cover
  main-is:          TestVertexCover.hs
  hs-source-dirs:   tests/Graph
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

Benchmark bench-vertex-cover
  main-is:          VertexCover.hs
  hs-source-dirs:   benchmarks
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, containers >= 0.5, transformers >= 0.5, clock >= 0.7, hgraph, random
  default-language: Haskell2010

test-suite test-treedepth
  main-is:          Treedepth.hs
  hs-source-dirs:   tests/Graph
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

test-suite test-connectivity
  main-is:          Connectivity.hs
  hs-source-dirs:   tests/Digraph
  type:             exitcode-stdio-1.0
  other-modules:    TestUtils
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

test-suite test-path-anonymity
  main-is:          PathAnonymity.hs
  hs-source-dirs:   tests/Digraph
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

test-suite test-subgraph
  main-is:          Subgraph.hs
  hs-source-dirs:   tests/Digraph
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

test-suite test-topological-minor
  main-is:          TopologicalMinor.hs
  hs-source-dirs:   tests/Digraph
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

test-suite test-edit-distance-acyclic
  main-is:          EditDistance-Acyclic.hs
  hs-source-dirs:   tests/Digraph
  type:             exitcode-stdio-1.0
  other-modules:    TestUtils
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

Benchmark benchmark-arc-deletion-acyclic
  main-is:          ArcDeletionAcyclic.hs
  hs-source-dirs:   benchmarks
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, containers >= 0.5, transformers >= 0.5, clock >= 0.7, hgraph, random
  default-language: Haskell2010

test-suite test-load
  main-is:          Load.hs
  hs-source-dirs:   tests/Digraph
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

test-suite test-digraph-generator
  main-is:          Generator.hs
  hs-source-dirs:   tests/Digraph
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

test-suite test-packing-cycles
  main-is:          Packing-Cycles.hs
  hs-source-dirs:   tests/Digraph
  type:             exitcode-stdio-1.0
  other-modules:    TestUtils
  build-depends:    base >=4.11 && <5, transformers >= 0.5, containers >= 0.5.9, HUnit >= 1.6, hgraph
  default-language: Haskell2010

Benchmark benchmark-packing-cycles
  main-is:          PackingCycles.hs
  hs-source-dirs:   benchmarks
  type:             exitcode-stdio-1.0
  build-depends:    base >=4.11 && <5, containers >= 0.5, transformers >= 0.5, clock >= 0.7, hgraph, random
  default-language: Haskell2010