Skip to content

Commit c9e185b

Browse files
committed
Add in unicode support.
1 parent c816910 commit c9e185b

File tree

6 files changed

+6116
-3
lines changed

6 files changed

+6116
-3
lines changed

LICENSE

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,93 @@ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1818
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1919
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21+
22+
===============================================================================
23+
24+
The file `ubconfc` is deriving from a file of the same name in the GHC source
25+
code. It is covered by the following license:
26+
27+
28+
This library (libraries/base) is derived from code from several
29+
sources:
30+
31+
* Code from the GHC project which is largely (c) The University of
32+
Glasgow, and distributable under a BSD-style license (see below),
33+
34+
* Code from the Haskell 98 Report which is (c) Simon Peyton Jones
35+
and freely redistributable (but see the full license for
36+
restrictions).
37+
38+
* Code from the Haskell Foreign Function Interface specification,
39+
which is (c) Manuel M. T. Chakravarty and freely redistributable
40+
(but see the full license for restrictions).
41+
42+
The full text of these licenses is reproduced below. All of the
43+
licenses are BSD-style or compatible.
44+
45+
-----------------------------------------------------------------------------
46+
47+
The Glasgow Haskell Compiler License
48+
49+
Copyright 2004, The University Court of the University of Glasgow.
50+
All rights reserved.
51+
52+
Redistribution and use in source and binary forms, with or without
53+
modification, are permitted provided that the following conditions are met:
54+
55+
- Redistributions of source code must retain the above copyright notice,
56+
this list of conditions and the following disclaimer.
57+
58+
- Redistributions in binary form must reproduce the above copyright notice,
59+
this list of conditions and the following disclaimer in the documentation
60+
and/or other materials provided with the distribution.
61+
62+
- Neither name of the University nor the names of its contributors may be
63+
used to endorse or promote products derived from this software without
64+
specific prior written permission.
65+
66+
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF
67+
GLASGOW AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
68+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
69+
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
70+
UNIVERSITY COURT OF THE UNIVERSITY OF GLASGOW OR THE CONTRIBUTORS BE LIABLE
71+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
72+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
73+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
74+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
75+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
76+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
77+
DAMAGE.
78+
79+
-----------------------------------------------------------------------------
80+
81+
Code derived from the document "Report on the Programming Language
82+
Haskell 98", is distributed under the following license:
83+
84+
Copyright (c) 2002 Simon Peyton Jones
85+
86+
The authors intend this Report to belong to the entire Haskell
87+
community, and so we grant permission to copy and distribute it for
88+
any purpose, provided that it is reproduced in its entirety,
89+
including this Notice. Modified versions of this Report may also be
90+
copied and distributed for any purpose, provided that the modified
91+
version is clearly presented as such, and that it does not claim to
92+
be a definition of the Haskell 98 Language.
93+
94+
-----------------------------------------------------------------------------
95+
96+
Code derived from the document "The Haskell 98 Foreign Function
97+
Interface, An Addendum to the Haskell 98 Report" is distributed under
98+
the following license:
99+
100+
Copyright (c) 2002 Manuel M. T. Chakravarty
101+
102+
The authors intend this Report to belong to the entire Haskell
103+
community, and so we grant permission to copy and distribute it for
104+
any purpose, provided that it is reproduced in its entirety,
105+
including this Notice. Modified versions of this Report may also be
106+
copied and distributed for any purpose, provided that the modified
107+
version is clearly presented as such, and that it does not claim to
108+
be a definition of the Haskell 98 Foreign Function Interface.
109+
110+
-----------------------------------------------------------------------------

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,21 @@ Unicode character functions.
77

88
## Installation
99

10-
```
11-
bower install purescript-unicode
10+
```sh
11+
$ bower install purescript-unicode
1212
```
1313

1414
## Module documentation
1515

1616
- [Data.Char.Unicode](docs/Data/Char/Unicode.md)
17+
18+
## Generate Internal module
19+
20+
The [Data.Char.Unicode.Internal](src/Data/Char/Unicode/Internal.purs) module
21+
can be generated with the following command:
22+
23+
```sh
24+
$ wget 'http://www.unicode.org/Public/6.0.0/ucd/UnicodeData.txt'
25+
$ ./ubconfc < UnicodeData.txt > src/Data/Char/Unicode/Internal.purs
26+
```
27+

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
],
2121
"dependencies": {
2222
"purescript-maybe": "^0.3.0",
23-
"purescript-foldable-traversable": "^0.4.0"
23+
"purescript-foldable-traversable": "^0.4.0",
24+
"purescript-strings": "^0.7.0"
2425
},
2526
"devDependencies": {
2627
"purescript-assert": "~0.1.0",

0 commit comments

Comments
 (0)