-
Notifications
You must be signed in to change notification settings - Fork 30
/
bound.cabal
109 lines (101 loc) · 3.07 KB
/
bound.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: bound
category: Language, Compilers/Interpreters
version: 0.9.1
license: BSD3
cabal-version: >= 1.9.2
license-file: LICENSE
author: Edward A. Kmett
maintainer: Edward A. Kmett <ekmett@gmail.com>
stability: experimental
homepage: http://github.com/ekmett/bound/
bug-reports: http://github.com/ekmett/bound/issues
copyright: Copyright (C) 2012-2013 Edward A. Kmett
synopsis: Making de Bruijn Succ Less
build-type: Custom
description:
We represent the target language itself as an ideal monad supplied by the
user, and provide a 'Scope' monad transformer for introducing bound variables
in user supplied terms. Users supply a 'Monad' and 'Traversable' instance,
and we traverse to find free variables, and use the Monad to perform
substitution that avoids bound variables.
.
Slides describing and motivating this approach to name binding are available
online at:
.
<http://www.slideshare.net/ekmett/bound-making-de-bruijn-succ-less>
.
The goal of this package is to make it as easy as possible to deal with name
binding without forcing an awkward monadic style on the user.
.
With generalized de Bruijn term you can 'lift' whole trees instead of just
applying 'succ' to individual variables, weakening the all variables bound
by a scope and greatly speeding up instantiation. By giving binders more
structure we permit easy simultaneous substitution and further speed up
instantiation.
extra-source-files:
.travis.yml
.ghci
.gitignore
.vim.custom
examples/Simple.hs
examples/Deriving.hs
examples/Overkill.hs
tests/doctests.hs
travis/cabal-apt-install
travis/config
README.markdown
CHANGELOG.markdown
AUTHORS.markdown
source-repository head
type: git
location: git://github.com/ekmett/bound.git
library
hs-source-dirs: src
exposed-modules:
Bound
Bound.Class
Bound.Name
Bound.Scope
Bound.Scope.Simple
Bound.Term
Bound.Var
build-depends:
base >= 4 && < 5,
bifunctors >= 3 && < 4,
binary >= 0.5 && < 0.8,
bytes >= 0.4 && < 1,
cereal >= 0.3.5.2 && < 0.5,
comonad >= 3 && < 5,
hashable >= 1.1 && < 1.3,
hashable-extras >= 0.1 && < 1,
prelude-extras >= 0.3 && < 1,
profunctors >= 3.3 && < 5,
transformers >= 0.2 && < 0.4
ghc-options: -Wall -O2 -fspec-constr -fdicts-cheap -funbox-strict-fields
if impl(ghc>=7.4)
build-depends: ghc-prim
test-suite Simple
type: exitcode-stdio-1.0
main-is: Simple.hs
hs-source-dirs: examples
ghc-options -Wall -threaded
if impl(ghc<7.6.1)
ghc-options: -Werror
build-depends:
base,
bound,
prelude-extras,
transformers
test-suite doctests
type: exitcode-stdio-1.0
main-is: doctests.hs
hs-source-dirs: tests
ghc-options: -Wall -threaded
if impl(ghc<7.6.1)
ghc-options: -Werror
build-depends:
base,
directory >= 1.0 && < 1.3,
doctest >= 0.9 && < 0.10,
filepath,
vector >= 0.9 && < 0.11