Skip to content

Commit

Permalink
Merge pull request #10 from tweag/qa/metadata
Browse files Browse the repository at this point in the history
Prepare metadata for Hackage release
  • Loading branch information
qaristote committed Dec 12, 2022
2 parents 19ef8b9 + 0257410 commit 2e2da2c
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 86 deletions.
89 changes: 55 additions & 34 deletions Z3/smtlib-backends-z3.cabal
Original file line number Diff line number Diff line change
@@ -1,42 +1,63 @@
name: smtlib-backends-z3
version: 0.1
synopsis: An SMT-LIB backend implemented using Z3's C API.
description: This library implements an SMT-LIB backend (in the sense of the smtlib-backends package) using inlined calls to Z3's C API. It is thus in particular much faster than the standard backends relying on running solvers as external processes.
license: MIT
license-file: LICENSE
author: Quentin Aristote
maintainer: quentin.aristote@tweag.io
build-type: Simple
cabal-version: >=1.10
name: smtlib-backends-z3
version: 0.1
synopsis: An SMT-LIB backend implemented using Z3's C API.
description:
This library implements an SMT-LIB backend (in the sense of the smtlib-backends package) using inlined calls to Z3's C API. It is thus in particular much faster than the standard backends relying on running solvers as external processes.

license: MIT
license-file: LICENSE
author: Quentin Aristote
maintainer: quentin.aristote@tweag.io
build-type: Simple
category: SMT
cabal-version: >=1.10

source-repository head
type: git
location: https://github.com/tweag/smtlib-backends
subdir: Z3

source-repository this
type: git
location: https://github.com/tweag/smtlib-backends
tag: 0.1
subdir: Z3

library
hs-source-dirs: src
ghc-options: -Wall -Wunused-packages
exposed-modules: SMTLIB.Backends.Z3
build-depends: base >= 4.15,
smtlib-backends,
containers >= 0.6,
bytestring >= 0.10,
inline-c
hs-source-dirs: src
ghc-options: -Wall -Wunused-packages
exposed-modules: SMTLIB.Backends.Z3
build-depends:
base >=4.15 && <4.17.0
, bytestring >=0.10
, containers >=0.6
, inline-c
, smtlib-backends

-- inspired from haskell-z3
if os(darwin) || os(windows)
extra-libraries:
z3
if (os(osx) || os(windows))
extra-libraries: z3

else
extra-libraries:
gomp z3 gomp
gomp
z3
gomp

default-language: Haskell2010

test-suite test
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: Main.hs
ghc-options: -threaded -Wall -Wunused-packages
build-depends: base >= 4.15,
bytestring >= 0.10,
smtlib-backends,
smtlib-backends-z3,
smtlib-backends-tests,
tasty,
tasty-hunit >= 0.10
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: Main.hs
ghc-options: -threaded -Wall -Wunused-packages
build-depends:
base >=4.15
, bytestring >=0.10
, smtlib-backends
, smtlib-backends-tests
, smtlib-backends-z3
, tasty
, tasty-hunit >=0.10

default-language: Haskell2010
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
cabal-install
hlint
haskell-language-server
cabal-fmt
])
++ [pkgs.z3];

Expand Down
86 changes: 54 additions & 32 deletions smtlib-backends.cabal
Original file line number Diff line number Diff line change
@@ -1,36 +1,58 @@
name: smtlib-backends
version: 0.1
synopsis: A library providing low-level functions for SMT-LIB-based interaction with SMT solvers.
description: This library provides an extensible interface for interacting with SMT solvers using SMT-LIB. It has built-in support for running solvers as external processes, and the smtlib-backends-z3 package provides a backend that uses inlined call to Z3's C API.
license: MIT
license-file: LICENSE
author: Quentin Aristote
maintainer: quentin.aristote@tweag.io
build-type: Simple
cabal-version: >=1.10
name: smtlib-backends
version: 0.1
synopsis:
Low-level functions for SMT-LIB-based interaction with SMT solvers.

description:
This library provides an extensible interface for interacting with SMT solvers using SMT-LIB. It has built-in support for running solvers as external processes, and the smtlib-backends-z3 package provides a backend that uses inlined calls to Z3's C API.

license: MIT
license-file: LICENSE
author: Quentin Aristote
maintainer: quentin.aristote@tweag.io
build-type: Simple
category: SMT
cabal-version: >=1.10

source-repository head
type: git
location: https://github.com/tweag/smtlib-backends

source-repository this
type: git
location: https://github.com/tweag/smtlib-backends
tag: 0.1

library
hs-source-dirs: src
ghc-options: -Wall -Wunused-packages
exposed-modules: SMTLIB.Backends
SMTLIB.Backends.Process
other-extensions: Safe
build-depends: base >=4.8 && <10,
async,
bytestring >= 0.10,
typed-process
default-language: Haskell2010
hs-source-dirs: src
ghc-options: -Wall -Wunused-packages
exposed-modules:
SMTLIB.Backends
SMTLIB.Backends.Process

other-extensions: Safe
build-depends:
async
, base >=4.15 && <4.17.0
, bytestring >=0.10
, typed-process

default-language: Haskell2010

test-suite test
type: exitcode-stdio-1.0
hs-source-dirs: tests/src
main-is: Main.hs
other-modules: SMTLIB.Backends.Tests
SMTLIB.Backends.Tests.Sources
ghc-options: -threaded -Wall -Wunused-packages
build-depends: base >= 4.15,
bytestring >= 0.10,
smtlib-backends,
tasty,
tasty-hunit
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: tests/src
main-is: Main.hs
other-modules:
SMTLIB.Backends.Tests
SMTLIB.Backends.Tests.Sources

ghc-options: -threaded -Wall -Wunused-packages
build-depends:
base >=4.15 && <4.17.0
, bytestring >=0.10
, smtlib-backends
, tasty
, tasty-hunit

default-language: Haskell2010
55 changes: 35 additions & 20 deletions tests/smtlib-backends-tests.cabal
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
name: smtlib-backends-tests
version: 0.1
synopsis: Testing SMT-LIB backends.
description: This library provides common functions and values used for testing SMT-LIB backends, as provided by the smtlib-backends library.
license: MIT
license-file: LICENSE
author: Quentin Aristote
maintainer: quentin.aristote@tweag.io
build-type: Simple
cabal-version: >=1.10
name: smtlib-backends-tests
version: 0.1
synopsis: Testing SMT-LIB backends.
description:
This library provides common functions and values used for testing SMT-LIB backends, as provided by the smtlib-backends library.

license: MIT
license-file: LICENSE
author: Quentin Aristote
maintainer: quentin.aristote@tweag.io
build-type: Simple
category: SMT, Testing
cabal-version: >=1.10

source-repository head
type: git
location: https://github.com/tweag/smtlib-backends
subdir: tests

source-repository this
type: git
location: https://github.com/tweag/smtlib-backends
tag: 0.1
subdir: tests

library
ghc-options: -Wall -Wunused-packages
hs-source-dirs: src
main-is: Main.hs
exposed-modules: SMTLIB.Backends.Tests
other-modules: SMTLIB.Backends.Tests.Sources
build-depends: base >= 4.15,
bytestring >= 0.10,
smtlib-backends,
tasty,
tasty-hunit
ghc-options: -Wall -Wunused-packages
hs-source-dirs: src
exposed-modules: SMTLIB.Backends.Tests
other-modules: SMTLIB.Backends.Tests.Sources
build-depends:
base >=4.15 && <4.17.0
, bytestring >=0.10
, smtlib-backends
, tasty
, tasty-hunit

default-language: Haskell2010

0 comments on commit 2e2da2c

Please sign in to comment.