name:                sym
version:             0.13.0
synopsis:            Permutations, patterns, and statistics
description:
  Definitions for permutations with an emphasis on permutation
  patterns and permutation statistics.

homepage:            https://github.com/akc/sym
license:             BSD3
license-file:        LICENSE
author:              Anders Claesson
maintainer:          anders.claesson@gmail.com
category:            Math
build-type:          Simple
cabal-version:       >=1.8

source-repository head
  type:                git
  location:            git://github.com/akc/sym.git

library
  exposed-modules:     Sym
                       Sym.Perm
                       Sym.Perm.Meta
                       Sym.Perm.SSYT
                       Sym.Perm.Component
                       Sym.Perm.Constructions
                       Sym.Perm.D8
                       Sym.Perm.Group
                       Sym.Perm.Bijection
                       Sym.Perm.Stat
                       Sym.Perm.STAT
                       Sym.Perm.Sort
                       Sym.Perm.Simple
                       Sym.Perm.Pattern
                       Sym.Perm.MeshPattern
                       Sym.Perm.Class
                       Sym.Permgram
                       Sym.Internal.SubSeq
                       Sym.Internal.CLongArray
                       Sym.Internal.Size
                       Sym.Internal.Util

  build-depends:       base >=4.7 && <= 5,
                       vector >=0.11,
                       hashable >=1.1,
                       containers

  ghc-options:         -Wall -O2
  cc-options:          -Wall

  c-sources:           cbits/rank.c
                       cbits/stat.c
                       cbits/d8.c
                       cbits/group.c
                       cbits/bij.c
                       cbits/ordiso.c
                       cbits/bit.c
                       cbits/simple.c
                       cbits/sortop.c

Test-Suite Props
  type:                exitcode-stdio-1.0
  Main-is:             Properties.hs
  hs-source-dirs:      tests
  Build-depends:       base >=4.7 && <= 5,
                       sym,
                       hashable >=1.1,
                       QuickCheck >=2.5