packages feed

rest-rewrite-0.5.0: rest-rewrite.cabal

cabal-version:      2.2
name:               rest-rewrite
build-type:         Simple
version:            0.5.0
category:           Rewriting
maintainer:         Zack Grannan <zgrannan@cs.ubc.ca>
author:             Zack Grannan <zgrannan@cs.ubc.ca>
license:            BSD-3-Clause
description:
    This package provides functions to determine if a sequence of terms has a
    well-quasi ordering that makes it non-increasing. This is useful for
    automatic theorem provers that need to decide when to stop exploring a
    particular path in a proof.
    .
    Also contains auxiliary functions to visualize trees of rewrites with the
    `dot` tool of the `graphviz` package.
    .
    See `README.md` for more details.

synopsis:           Rewriting library with online termination checking
license-file:       LICENSE

extra-doc-files: changelog.md

extra-source-files:
  graphs/.DONOTDELETE

source-repository head
  type:     git
  location: https://github.com/zgrannan/rest

flag devel
  default:     False
  manual:      True
  description: Enable more warnings and fail compilation when warnings occur.
               Turn this flag on in CI.

common common-ghc-options
  ghc-options:        -W -fwarn-missing-signatures -Wno-x-partial -Wno-incomplete-record-selectors
  if flag(devel)
    ghc-options:      -Wall -Werror -Wno-x-partial -Wno-incomplete-record-selectors

library
  import:           common-ghc-options
  default-language:  Haskell2010
  exposed-modules:
    Language.REST
    Language.REST.Core
    Language.REST.Dot
    Language.REST.ExploredTerms
    Language.REST.Internal.EquivalenceClass
    Language.REST.Internal.ListT
    Language.REST.Internal.MultiSet
    Language.REST.Internal.MultisetOrder
    Language.REST.Internal.OpOrdering
    Language.REST.Internal.Orphans
    Language.REST.Internal.PartialOrder
    Language.REST.Internal.Rewrite
    Language.REST.Internal.Util
    Language.REST.Internal.WorkStrategy
    Language.REST.Internal.WQO
    Language.REST.KBO
    Language.REST.LPO
    Language.REST.MetaTerm
    Language.REST.OCAlgebra
    Language.REST.OCToAbstract
    Language.REST.Op
    Language.REST.Path
    Language.REST.RESTDot
    Language.REST.RPO
    Language.REST.Rest
    Language.REST.RewriteRule
    Language.REST.RuntimeTerm
    Language.REST.SMT
    Language.REST.Types
    Language.REST.WQOConstraints
    Language.REST.WQOConstraints.SMT
    Language.REST.WQOConstraints.Strict
  hs-source-dirs: src
  build-depends:  base                 >= 4.7 && < 5
                , containers           >= 0.6.2 && < 0.9
                , hashable             >= 1.3.0 && < 1.6
                , process              >= 1.6.9 && < 1.7
                , parsec               >= 3.1.14 && < 3.2
                , mtl                  >= 2.2.2 && < 2.4
                , unordered-containers >= 0.2.13 && < 0.3
                , text                 >= 1.2.4 && < 2.2

library testlib
  import:           common-ghc-options
  default-language:  Haskell2010
  build-depends:  base >= 4.7
                , containers
                , hashable
                , process
                , QuickCheck
                , rest-rewrite
                , parsec
                , mtl
                , monad-loops >= 0.4.3 && < 0.5
                , unordered-containers >= 0.2.11
                , text
                , time >= 1.9.3 && < 1.16
  exposed-modules:
      Arith
      DSL
      Language.REST.ConcreteOC
      Language.REST.ProofGen
      MultisetOrdering
      Nat
      Set

  hs-source-dirs: testlib

Test-Suite test-rest
  import:           common-ghc-options
  default-language:  Haskell2010
  type: exitcode-stdio-1.0
  main-is: Test.hs
  hs-source-dirs: test
  build-depends:  base
                , hashable
                , containers
                , QuickCheck >= 2.14.2
                , mtl
                , unordered-containers
                , text
                , rest-rewrite
                , tasty
                , tasty-hunit
                , tasty-quickcheck
                , testlib
  other-modules:
    ExploredTerms
    KBO
    LPOEquiv
    MultisetOrder
    OpOrdering
    QuickCheckTests
    RPO
    RPOEquiv
    SMT
    SMTExprInstances
    StrictOC
    WQO

Test-Suite rest
  import:           common-ghc-options
  default-language:  Haskell2010
  type: exitcode-stdio-1.0
  main-is: Main.hs
  -- ghc-plugins: -fplugin=LiquidHaskell
  build-depends:  base >= 4.7
                , containers
                , hashable
                , rest-rewrite
                , mtl
                , unordered-containers >= 0.2.11
                , testlib
                , text
                , time
                -- , liquidhaskell
                -- , liquid-base
  other-modules:
      BagExample
      Compiler
      Group
      Lists
      Multiset
      NonTerm
      WQODot

  hs-source-dirs: test