[project @ 2002-05-31 12:22:33 by panne]
[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 The full text of these licenses is reproduced below.
19
20 -----------------------------------------------------------------------------
21
22 The Glasgow Haskell Compiler License
23
24 Copyright 2002, The University Court of the University of Glasgow. 
25 All rights reserved.
26
27 Redistribution and use in source and binary forms, with or without
28 modification, are permitted provided that the following conditions are met:
29
30 - Redistributions of source code must retain the above copyright notice,
31 this list of conditions and the following disclaimer.
32  
33 - Redistributions in binary form must reproduce the above copyright notice,
34 this list of conditions and the following disclaimer in the documentation
35 and/or other materials provided with the distribution.
36  
37 - Neither name of the University nor the names of its contributors may be
38 used to endorse or promote products derived from this software without
39 specific prior written permission. 
40
41 THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF
42 GLASGOW AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
43 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
44 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
45 UNIVERSITY COURT OF THE UNIVERSITY OF GLASGOW OR THE CONTRIBUTORS BE LIABLE
46 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
47 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
48 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
49 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
50 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
51 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
52 DAMAGE.
53
54 -----------------------------------------------------------------------------
55
56 Code derived from the document "Report on the Programming Language
57 Haskell 98", is distributed under the following license:
58
59   Copyright (c) 2002 Simon Peyton Jones
60
61   The authors intend this Report to belong to the entire Haskell
62   community, and so we grant permission to copy and distribute it for
63   any purpose, provided that it is reproduced in its entirety,
64   including this Notice.  Modified versions of this Report may also be
65   copied and distributed for any purpose, provided that the modified
66   version is clearly presented as such, and that it does not claim to
67   be a definition of the Haskell 98 Language.
68
69 -----------------------------------------------------------------------------
70
71 Code derived from the document "The Haskell 98 Foreign Function
72 Interface, An Addendum to the Haskell 98 Report" is distributed under
73 the following license:
74
75   Copyright (c) 2002 Manuel M. T. Chakravarty
76
77   The authors intend this Report to belong to the entire Haskell
78   community, and so we grant permission to copy and distribute it for
79   any purpose, provided that it is reproduced in its entirety,
80   including this Notice.  Modified versions of this Report may also be
81   copied and distributed for any purpose, provided that the modified
82   version is clearly presented as such, and that it does not claim to
83   be a definition of the Haskell 98 Foreign Function Interface.
84
85 -----------------------------------------------------------------------------
86
87 Code derived from Daan Leijen's Parsec is distributed under the following
88 license:
89
90   Copyright 1999-2000, Daan Leijen. All rights reserved.
91
92   Redistribution and use in source and binary forms, with or without
93   modification, are permitted provided that the following conditions are met:
94
95     * Redistributions of source code must retain the above copyright notice,
96       this list of conditions and the following disclaimer.
97     * Redistributions in binary form must reproduce the above copyright
98       notice, this list of conditions and the following disclaimer in the
99       documentation and/or other materials provided with the distribution.
100
101 This software is provided by the copyright holders "as is" and any express or
102 implied warranties, including, but not limited to, the implied warranties of
103 merchantability and fitness for a particular purpose are disclaimed. In no
104 event shall the copyright holders be liable for any direct, indirect,
105 incidental, special, exemplary, or consequential damages (including, but not
106 limited to, procurement of substitute goods or services; loss of use, data,
107 or profits; or business interruption) however caused and on any theory of
108 liability, whether in contract, strict liability, or tort (including
109 negligence or otherwise) arising in any way out of the use of this software,
110 even if advised of the possibility of such damage.