-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnarc.cabal
More file actions
77 lines (58 loc) · 3.17 KB
/
Copy pathnarc.cabal
File metadata and controls
77 lines (58 loc) · 3.17 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
-- narc.cabal auto-generated by cabal init. For additional options,
-- see
-- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr.
-- The name of the package.
Name: narc
-- The package version. See the Haskell package versioning policy
-- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for
-- standards guiding when and how versions should be incremented.
Version: 0.1.4
-- A short (one-line) description of the package.
Synopsis: Query SQL databases using Nested Relational Calculus embedded in Haskell.
-- A longer description of the package.
Description: Narc is an embedded language for querying SQL databases,
which permits using the ``nested relational'' model, one
more flexible than the traditional relational model of SQL
databases. Although Narc's internal data model is richer,
queries are transformed into SQL to run against standard
databases.
.
To use the language, express a query using the combinators
like @foreach@, @table@, @having@, @singleton@ and so on.
Wrap this in a call to @narcToSQLString@ to get a string
that can be sent to a SQL database.
.
To send a query directly to an HDBC connection, import
the module @Database.Narc.HDBC@ and use its @run@ function,
passing it an HDBC connection and a Narc query. The result
is an IO action that returns a 2-D list of result values
in HDBC's usual format.
-- URL for the project homepage or repository.
Homepage: http://ezrakilty.net/projects/narc
-- The license under which the package is released.
License: BSD3
-- The file containing the license text.
License-file: LICENSE
-- The package author(s).
Author: Ezra e. k. Cooper
-- An email address to which users can send suggestions, bug reports,
-- and patches.
Maintainer: [email protected]
-- A copyright notice.
-- Copyright:
Category: Database
Build-type: Simple
-- Extra files to be distributed with the package, such as examples or
-- a README.
-- Extra-source-files:
-- Constraint on the version of Cabal needed to build this package.
Cabal-version: >=1.2
Library
-- Modules exported by the library.
Exposed-modules: Database.Narc, Database.Narc.Test, Database.Narc.Example, Database.Narc.Embed.Ops, Database.Narc.Type, Database.Narc.HDBC
-- Packages needed in order to build this package.
Build-depends: base >=4 && < 5, HUnit, QuickCheck, mtl, random, HDBC
-- Modules not exported by this package.
Other-modules: Algebras, Gensym, QCUtils, Numeric.Unary, Database.Narc.TermGen, Database.Narc.Var, Database.Narc.Contract, Database.Narc.Debug, Database.Narc.Embed, Database.Narc.TypeInfer, Database.Narc.Util, Database.Narc.AST.Pretty, Database.Narc.Failure.QuickCheck, Database.Narc.Rewrite, Database.Narc.AST, Database.Narc.Common, Database.Narc.Compile, Database.Narc.Eval, Database.Narc.Fallible, Database.Narc.Pretty, Database.Narc.SQL.Pretty, Database.Narc.SQL
-- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
-- Build-tools: