[project @ 2002-06-20 13:54:40 by simonmar]
[ghc-base.git] / LICENSE
1 This library (libraries/base) is derived from code from several
2 sources: 
3
4   * Code from the GHC project which is largely (c) The University of
5     Glasgow, and distributable under a BSD-style license (see below),
6
7   * Code from the Haskell 98 Report which is (c) Simon Peyton Jones
8     and freely redistributable (but see the full license for
9     restrictions).
10
11   * Code from the Haskell Foreign Function Interface specification,
12     which is (c) Manuel M. T. Chakravarty and freely redistributable
13     (but see the full license for restrictions).
14
15   * Code from the Parsec library which is (c) Daan Leijen, and
16     distributable under a BSD-style license (see below).
17
18   * Code from the Haskell Html library which is (c) Andy Gill, and the
19     Oregon Graduate Institute of Science and Technology
20
21 The full text of these licenses is reproduced below.  All of the
22 licenses are BSD-style or compatible.
23
24 -----------------------------------------------------------------------------
25
26 The Glasgow Haskell Compiler License
27
28 Copyright 2002, The University Court of the University of Glasgow. 
29 All rights reserved.
30
31 Redistribution and use in source and binary forms, with or without
32 modification, are permitted provided that the following conditions are met:
33
34 - Redistributions of source code must retain the above copyright notice,
35 this list of conditions and the following disclaimer.
36  
37 - Redistributions in binary form must reproduce the above copyright notice,
38 this list of conditions and the following disclaimer in the documentation
39 and/or other materials provided with the distribution.
40  
41 - Neither name of the University nor the names of its contributors may be
42 used to endorse or promote products derived from this software without
43 specific prior written permission. 
44
45 THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF
46 GLASGOW AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
47 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
48 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
49 UNIVERSITY COURT OF THE UNIVERSITY OF GLASGOW OR THE CONTRIBUTORS BE LIABLE
50 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
51 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
52 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
53 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
54 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
55 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
56 DAMAGE.
57
58 -----------------------------------------------------------------------------
59
60 Code derived from the document "Report on the Programming Language
61 Haskell 98", is distributed under the following license:
62
63   Copyright (c) 2002 Simon Peyton Jones
64
65   The authors intend this Report to belong to the entire Haskell
66   community, and so we grant permission to copy and distribute it for
67   any purpose, provided that it is reproduced in its entirety,
68   including this Notice.  Modified versions of this Report may also be
69   copied and distributed for any purpose, provided that the modified
70   version is clearly presented as such, and that it does not claim to
71   be a definition of the Haskell 98 Language.
72
73 -----------------------------------------------------------------------------
74
75 Code derived from the document "The Haskell 98 Foreign Function
76 Interface, An Addendum to the Haskell 98 Report" is distributed under
77 the following license:
78
79   Copyright (c) 2002 Manuel M. T. Chakravarty
80
81   The authors intend this Report to belong to the entire Haskell
82   community, and so we grant permission to copy and distribute it for
83   any purpose, provided that it is reproduced in its entirety,
84   including this Notice.  Modified versions of this Report may also be
85   copied and distributed for any purpose, provided that the modified
86   version is clearly presented as such, and that it does not claim to
87   be a definition of the Haskell 98 Foreign Function Interface.
88
89 -----------------------------------------------------------------------------
90
91 Code derived from Daan Leijen's Parsec is distributed under the following
92 license:
93
94   Copyright 1999-2000, Daan Leijen. All rights reserved.
95
96   Redistribution and use in source and binary forms, with or without
97   modification, are permitted provided that the following conditions are met:
98
99     * Redistributions of source code must retain the above copyright notice,
100       this list of conditions and the following disclaimer.
101     * Redistributions in binary form must reproduce the above copyright
102       notice, this list of conditions and the following disclaimer in the
103       documentation and/or other materials provided with the distribution.
104
105 This software is provided by the copyright holders "as is" and any express or
106 implied warranties, including, but not limited to, the implied warranties of
107 merchantability and fitness for a particular purpose are disclaimed. In no
108 event shall the copyright holders be liable for any direct, indirect,
109 incidental, special, exemplary, or consequential damages (including, but not
110 limited to, procurement of substitute goods or services; loss of use, data,
111 or profits; or business interruption) however caused and on any theory of
112 liability, whether in contract, strict liability, or tort (including
113 negligence or otherwise) arising in any way out of the use of this software,
114 even if advised of the possibility of such damage.
115
116 -----------------------------------------------------------------------------
117
118 Code derived from Andy Gill's Haskell Html combinator library is in
119 Text/Html.hs and Text/Html/BlockTable.hs.
120
121 The Haskell Html Library is Copyright (c) Andy Gill, and the Oregon
122 Graduate Institute of Science and Technology, 1999, All rights
123 reserved, and is distributed as free software under the following
124 license.
125
126 Redistribution and use in source and binary forms, with or without
127 modification, are permitted provided that the following conditions
128 are met:
129
130 - Redistributions of source code must retain the above copyright notice,
131 this list of conditions and the following disclaimer.
132
133 - Neither name of the copyright holders nor the names of its
134 contributors may be used to endorse or promote products derived from
135 this software without specific prior written permission.
136
137 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND THE CONTRIBUTORS
138 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
139 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
140 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
141 HOLDERS OR THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
142 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
143 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
144 OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
145 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
146 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
147 USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.