Skip to content

Commit 0ff5a4a

Browse files
committed
added LICENSE
1 parent e3327de commit 0ff5a4a

File tree

5 files changed

+365
-12
lines changed

5 files changed

+365
-12
lines changed

AST.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{-# LANGUAGE
22
DeriveFunctor,
3-
FlexibleInstances
3+
FlexibleInstances,
4+
PatternGuards
45
#-}
56
module AST where
67

Choice.hs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{-# LANGUAGE
22
DeriveFunctor,
3-
FlexibleContexts,
4-
TypeSynonymInstances,
5-
FlexibleInstances,
6-
MultiParamTypeClasses
3+
FlexibleContexts,
4+
TypeSynonymInstances
75
#-}
86

97
module Choice where

LICENSE

+320
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,320 @@
1+
GNU GENERAL PUBLIC LICENSE
2+
Version 3, 29 June 2007
3+
4+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5+
Everyone is permitted to copy and distribute verbatim copies
6+
of this license document, but changing it is not allowed.
7+
8+
Preamble
9+
10+
The GNU General Public License is a free, copyleft license for
11+
software and other kinds of works.
12+
13+
The licenses for most software and other practical works are designed
14+
to take away your freedom to share and change the works. By contrast,
15+
the GNU General Public License is intended to guarantee your freedom to
16+
share and change all versions of a program--to make sure it remains free
17+
software for all its users. We, the Free Software Foundation, use the
18+
GNU General Public License for most of our software; it applies also to
19+
any other work released this way by its authors. You can apply it to
20+
your programs, too.
21+
22+
When we speak of free software, we are referring to freedom, not
23+
price. Our General Public Licenses are designed to make sure that you
24+
have the freedom to distribute copies of free software (and charge for
25+
them if you wish), that you receive source code or can get it if you
26+
want it, that you can change the software or use pieces of it in new
27+
free programs, and that you know you can do these things.
28+
29+
To protect your rights, we need to prevent others from denying you
30+
these rights or asking you to surrender the rights. Therefore, you have
31+
certain responsibilities if you distribute copies of the software, or if
32+
you modify it: responsibilities to respect the freedom of others.
33+
34+
For example, if you distribute copies of such a program, whether
35+
gratis or for a fee, you must pass on to the recipients the same
36+
freedoms that you received. You must make sure that they, too, receive
37+
or can get the source code. And you must show them these terms so they
38+
know their rights.
39+
40+
Developers that use the GNU GPL protect your rights with two steps:
41+
(1) assert copyright on the software, and (2) offer you this License
42+
giving you legal permission to copy, distribute and/or modify it.
43+
44+
For the developers' and authors' protection, the GPL clearly explains
45+
that there is no warranty for this free software. For both users' and
46+
authors' sake, the GPL requires that modified versions be marked as
47+
changed, so that their problems will not be attributed erroneously to
48+
authors of previous versions.
49+
50+
Some devices are designed to deny users access to install or run
51+
modified versions of the software inside them, although the manufacturer
52+
can do so. This is fundamentally incompatible with the aim of
53+
protecting users' freedom to change the software. The systematic
54+
pattern of such abuse occurs in the area of products for individuals to
55+
use, which is precisely where it is most unacceptable. Therefore, we
56+
have designed this version of the GPL to prohibit the practice for those
57+
products. If such problems arise substantially in other domains, we
58+
stand ready to extend this provision to those domains in future versions
59+
of the GPL, as needed to protect the freedom of users.
60+
61+
Finally, every program is threatened constantly by software patents.
62+
States should not allow patents to restrict development and use of
63+
software on general-purpose computers, but in those that do, we wish to
64+
avoid the special danger that patents applied to a free program could
65+
make it effectively proprietary. To prevent this, the GPL assures that
66+
patents cannot be used to render the program non-free.
67+
68+
The precise terms and conditions for copying, distribution and
69+
modification follow.
70+
71+
TERMS AND CONDITIONS
72+
73+
0. Definitions.
74+
75+
"This License" refers to version 3 of the GNU General Public License.
76+
77+
"Copyright" also means copyright-like laws that apply to other kinds of
78+
works, such as semiconductor masks.
79+
80+
"The Program" refers to any copyrightable work licensed under this
81+
License. Each licensee is addressed as "you". "Licensees" and
82+
"recipients" may be individuals or organizations.
83+
84+
To "modify" a work means to copy from or adapt all or part of the work
85+
in a fashion requiring copyright permission, other than the making of an
86+
exact copy. The resulting work is called a "modified version" of the
87+
earlier work or a work "based on" the earlier work.
88+
89+
A "covered work" means either the unmodified Program or a work based
90+
on the Program.
91+
92+
To "propagate" a work means to do anything with it that, without
93+
permission, would make you directly or secondarily liable for
94+
infringement under applicable copyright law, except executing it on a
95+
computer or modifying a private copy. Propagation includes copying,
96+
distribution (with or without modification), making available to the
97+
public, and in some countries other activities as well.
98+
99+
To "convey" a work means any kind of propagation that enables other
100+
parties to make or receive copies. Mere interaction with a user through
101+
a computer network, with no transfer of a copy, is not conveying.
102+
103+
An interactive user interface displays "Appropriate Legal Notices"
104+
to the extent that it includes a convenient and prominently visible
105+
feature that (1) displays an appropriate copyright notice, and (2)
106+
tells the user that there is no warranty for the work (except to the
107+
extent that warranties are provided), that licensees may convey the
108+
work under this License, and how to view a copy of this License. If
109+
the interface presents a list of user commands or options, such as a
110+
menu, a prominent item in the list meets this criterion.
111+
112+
1. Source Code.
113+
114+
The "source code" for a work means the preferred form of the work
115+
for making modifications to it. "Object code" means any non-source
116+
form of a work.
117+
118+
A "Standard Interface" means an interface that either is an official
119+
standard defined by a recognized standards body, or, in the case of
120+
interfaces specified for a particular programming language, one that
121+
is widely used among developers working in that language.
122+
123+
The "System Libraries" of an executable work include anything, other
124+
than the work as a whole, that (a) is included in the normal form of
125+
packaging a Major Component, but which is not part of that Major
126+
Component, and (b) serves only to enable use of the work with that
127+
Major "Major Component", in this context, means a major essential component
128+
(kernel, window system, and so on) of the specific operating system
129+
(if any) on which the executable work r, it does not include the work's
130+
System Libraries, or general-purpose tools or generally available free
131+
programs which are used unmodified in performing those activities but
132+
which are not part of the work. For eose
133+
subprograms and other parts of the work.
134+
135+
The Corresponding Source need not include anything that users
136+
can regenerate automatically from other parts of the work.
137+
138+
2. Basic Permissions.
139+
140+
All rights gran unmodified Program. The output from running a
141+
covered work is covered by this
142+
143+
You may make, run and propagate covered works that you do not
144+
convey, without conditions so long as your license otherwise remainyou, or proively on your behalf, under your direction
145+
and control, on terms that prohibit them from making any copies of
146+
your copyrighted material outside their relationship with you.
147+
148+
Conveying under any otherg obligations under article
149+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
150+
similar laws prohibiting or restricting circumvention of such
151+
measures.
152+
153+
When you convey a covered work, you waive any k's
154+
users, your or third parties' legal rights to forbidsly and
155+
appropriately publish on each copy an appropriate copyright notice;
156+
keep intact all notices stating that this License and any
157+
non-permissive terms amay convey a work based on the Program, or the modifications to
158+
produce it from the Program, in the form of source code under the
159+
terms of section 4, provided that you also meet all of these conditions:
160+
161+
a) T
162+
"keep intact all notices".
163+
164+
c) You must license the entire work, as a whole, under this
165+
License to anyone who comes into possession of a copy. This
166+
License will therefore apply, along with any ae work has interactive user interfaces, each must display
167+
Appropriate Legal Notices; however, if the Program has interactive
168+
interfaces that do not display Apered work with other separate and independent
169+
regate" if the compilation and its resulting copyright are not
170+
used to limit the access or legal rights of the c the other
171+
parts of the aggregate.
172+
173+
6. Conveying Non-Source Forms.
174+
175+
You may convey a covered woricensware interchange.
176+
177+
b) Convey the object code in, or embodied in, a physical product
178+
(including a physical distribution medium), accompanied by a
179+
written offer, valid for at least three years and ly used for software interchange, for a price no
180+
more than your reasonable cost of physically performing this
181+
conveying of source, or (2) access to copy the
182+
Correes of the object code with a copy of tection 6b.
183+
184+
d) Convey the object code by offering access from a designated
185+
place (gratis or for a charge),quire recipients to copy the
186+
Corresponding Source along with the object code. If the place toequival available for as long as needed to satisfy these requirements.
187+
188+
e) Convey the object code using peer-to-peer transmission, provided
189+
you inform other peers where the object code and Corresponding
190+
her (1) a "consumer product", which means any
191+
tangible personal property which is normally used for personal, family,
192+
or household purposes, or (2) anything designed or sold for incorporation
193+
into a dwelling. Inway in which the particular user
194+
ly significant mode of use of the product.
195+
196+
"Installation Information" for a User Product means any methods,
197+
procedures, authorization keys, or other information required to insbject code work under this section in, or with, or
198+
specifically for use in, a User Product, and the conveying occurs as
199+
part of a transaction in which the right of possession and use of the
200+
User Product is transf ability to install
201+
modified object code on the User Product (for example, the work has
202+
been installed in ROM).
203+
204+
The requirement to provide Installation Information does not include a
205+
requirement to continue totwork or violates the rules and
206+
protocols for communica available to the public in
207+
source code form), and must require no special password or key for
208+
unpacking, reading or copying.
209+
210+
7. Additional Terms.
211+
212+
"Addpart of the Program, that part may be used separately
213+
under those permissions, but the entire Program remains governed by
214+
this License without regard to the additional permissions.
215+
216+
When you convey a copy of a work,
217+
for which you have or can give appropriate copyright permission.
218+
219+
Notwithstanding any other provision of this License, for material you
220+
add to a covered work, you may (if authorized by the copyright f thaterial or in the Apt from the original version; or
221+
222+
d) Limiting the use for publicity purposes of names of licensors or
223+
authors of the material; or
224+
225+
e) Declining to grant rights under trademark law fsumptions directly impose on
226+
those licensors and authors.
227+
228+
All other non-permissive additional terms are considered "further
229+
restrictions" within the meaning of section 10. If the Program as you
230+
received itmaterial governed by the terms
231+
of that license document, provided that the further restriction does
232+
not survive such relicensing or conveying.
233+
234+
If you add terms to a covered work in accord with this section, yo
235+
the above requirements apply either way.
236+
237+
8. Termination.
238+
239+
You may not propagate or rights under
240+
this License (including any patent licenses granted under the third
241+
paragraph of section 11).
242+
243+
However, if y particular copyright holder is
244+
reinstated permanently if the copyright holder notifies you of the
245+
violation by some reasonable means, this is the first time you have
246+
received notice of violation of this License en terminated and not permanently
247+
reinstated, you do not qualify to receive new licenses for the same
248+
material under section 10.
249+
250+
9. Acceptance Not Required for Having Copies.
251+
252+
You are not required to accepy agate or
253+
modify any covered work. These actions infringe copyright if you do
254+
not accept this License. Therefore, by ecipients.
255+
256+
Each time you convey a covered work, the recipient automatically
257+
receives a licey transaction, each party to that
258+
transaction who receives a copy of the work also receives whatever
259+
licenses to the work the party's predecessor in interest had or could
260+
give under the previous paragraph, plus a ot impose a license fee, royalty, or other charge for exercise of
261+
rights granted under this License, and you may not initiate litigation
262+
(including a cross-claim or counterclaim in a lawsuit) allling, offering fd the contributor's "contributor version".
263+
264+
A contributor's "essential patent claims" are all patent claims
265+
owned oLicense, of making, using, or selling its contributor version,
266+
but do not include claims that wimport and otherwise run, modify and
267+
propagate the contents of its contributor version.
268+
269+
In the following three paragraphs, a "patent license" is any express
270+
agreement or commitment, however denominated, not toing on a patent license,
271+
and the Corresponding Source of the work is not available for anyone
272+
to copy, free of charge and under the terms of this1) cause the Corresponding Source to be so
273+
available, or (2) arrangse to downstream recipients. "Knowingly relying" means you have
274+
actual kble patents in that
275+
country that you have reason to believe are valid.
276+
277+
If, pursuant to or in connection with a single transaction or
278+
arratent license is "discriminatory" if it does not include within
279+
the scope of its coverage, prohibits the exercise of, or is
280+
conditioned on the non-exercise of one or more of the rights that are
281+
specifically grantrty grants, to any of the
282+
parties who would receive the covered work from you, a discriminatory
283+
patent license (a) in connection with copies of the c specific products or compilations that
284+
contain the covered workse orions of this License, they do not
285+
excuse you from the conditions of this License. If you cannot convey a
286+
covered work so as to satisfy simultaneously your obligations under this
287+
License and any other pertinom conveying the Program.
288+
289+
13. Use with the GNU Affero General Public License.
290+
291+
Notwithstanding any other provision of this License, you have
292+
permission to link or combine any covered work with a work licensening interaction through a network will apply to the
293+
combination as such.
294+
295+
14. Revised Versions of this License.
296+
297+
The Free Software Foundation may pubns will
298+
be similar in spirit to the present version, but m License "or any later version" ap the
299+
GNU General Public License, you may choose any version ever published
300+
by the Free Software Foundation.
301+
302+
If the Program specifies that a proxy can decide which future
303+
versis a result of your choosing to follow a
304+
later version.
305+
306+
15. Disclaimer of Warranty.
307+
308+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
309+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING TOGRAM
310+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
311+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
312+
313+
16. Limitation of Liability.
314+
315+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGITED TO LOSS OF
316+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
317+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
318+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN A7. ute waiver of all civil liability in connection with the
319+
Program, unless a warranty or assumption of liability accompanies a
320+
copy of the Program in return for a Your New Programs

Main.hs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE RecordWildCards #-}
21
module Main where
32

43
import AST

caledon.cabal

+41-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,44 @@
1-
name: caledon
2-
version: 0.0
3-
build-type: Simple
4-
cabal-version: >= 1.2
1+
Name: caledon
2+
3+
Version: 0.0.0.0
4+
5+
Description:
6+
7+
Homepage: https://github.com/mmirman/caledon
8+
9+
License: GPL-3
10+
11+
License-file: LICENSE
12+
13+
Author: Matthew Mirman
14+
15+
Maintainer: Matthew Mirman <[email protected]>
16+
17+
Category: Language, Interpreter
18+
19+
Build-type: Simple
20+
21+
Cabal-version: >= 1.6
22+
23+
Source-repository head
24+
Type: git
25+
Location: git://github.com/mmirman/caledon.git
526

627
executable caledon
728
main-is: Main.hs
8-
build-depends: parsec, mtl, base, containers, transformers
9-
other-modules: Solver, Choice, Parser
29+
other-modules: Solver, Choice, Parser
30+
31+
Build-depends: base >= 4.0 && < 5.0,
32+
mtl >= 2.0 && < 3.0,
33+
parsec >= 3.0 && < 4.0,
34+
containers >= 0.4 && < 1.0,
35+
transformers >= 0.3 && < 1.0
36+
37+
Extensions: DeriveFunctor,
38+
FlexibleContexts,
39+
FlexibleInstances,
40+
MultiParamTypeClasses,
41+
PatternGuards,
42+
RecordWildCards,
43+
TupleSections,
44+
TypeSynonymInstances

0 commit comments

Comments
 (0)