This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHedsql-tests.cabal
53 lines (51 loc) · 1.88 KB
/
Hedsql-tests.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Hedsql-examples
version: 0.1
cabal-version: >= 1.2
build-type: Simple
author: Leonard Monnier
stability: Experimental
maintainer: Leonard Monnier <[email protected]>
synopsis: Hedsql examples and tests
description:
Examples and tests of the Hedsql package.
.
The tests are located in this separate packages,
because Hedsql is tested in two ways:
1) against expected string values;
2) directly against a database.
.
For the second kind of tests, we need connections with a
database (better so!).
It would not have make sense to request dependencies toward
a particular DB package for Hedsql
(as Hedsql prefers to stay DB package agnistic!)
.
Also, we didn't wanted to copy-paste the examples of
queries between a "string" and "DB" test suite.
license: GPL-3
license-file: LICENSE.md
copyright: (c) 2015 Leonard Monnier
tested-with: GHC==7.10.1
library
hs-source-dirs: src
build-depends:
base >= 4,
text,
Hedsql,
Hedsql-SQLiteSimple,
sqlite-simple,
test-framework >=0.8 && <0.9,
test-framework-hunit >=0.3 && <0.4,
HUnit >=1.2 && <1.3
ghc-options: -Wall
exposed-modules:
Database.Hedsql.Examples.Create,
Database.Hedsql.Examples.Select
other-modules:
Database.Hedsql.Tests.Queries,
Database.Hedsql.Tests.TableManipulations
executable Main
build-depends: base >= 4
hs-source-dirs: src
ghc-options: -Wall -rtsopts
main-is: Main.hs