Skip to content

Commit 525b752

Browse files
committed
trim trailing whitespace
1 parent 145c4c5 commit 525b752

File tree

90 files changed

+265
-265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+265
-265
lines changed

LICENSE

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -41,43 +41,43 @@ PureScript uses the following Haskell library packages. Their license files foll
4141
base LICENSE file:
4242

4343
This library (libraries/base) is derived from code from several
44-
sources:
45-
44+
sources:
45+
4646
* Code from the GHC project which is largely (c) The University of
4747
Glasgow, and distributable under a BSD-style license (see below),
48-
48+
4949
* Code from the Haskell 98 Report which is (c) Simon Peyton Jones
5050
and freely redistributable (but see the full license for
5151
restrictions).
52-
52+
5353
* Code from the Haskell Foreign Function Interface specification,
5454
which is (c) Manuel M. T. Chakravarty and freely redistributable
5555
(but see the full license for restrictions).
56-
56+
5757
The full text of these licenses is reproduced below. All of the
5858
licenses are BSD-style or compatible.
59-
59+
6060
-----------------------------------------------------------------------------
61-
61+
6262
The Glasgow Haskell Compiler License
63-
64-
Copyright 2004, The University Court of the University of Glasgow.
63+
64+
Copyright 2004, The University Court of the University of Glasgow.
6565
All rights reserved.
66-
66+
6767
Redistribution and use in source and binary forms, with or without
6868
modification, are permitted provided that the following conditions are met:
69-
69+
7070
- Redistributions of source code must retain the above copyright notice,
7171
this list of conditions and the following disclaimer.
72-
72+
7373
- Redistributions in binary form must reproduce the above copyright notice,
7474
this list of conditions and the following disclaimer in the documentation
7575
and/or other materials provided with the distribution.
76-
76+
7777
- Neither name of the University nor the names of its contributors may be
7878
used to endorse or promote products derived from this software without
79-
specific prior written permission.
80-
79+
specific prior written permission.
80+
8181
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF
8282
GLASGOW AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
8383
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
@@ -90,40 +90,40 @@ base LICENSE file:
9090
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
9191
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
9292
DAMAGE.
93-
93+
9494
-----------------------------------------------------------------------------
95-
95+
9696
Code derived from the document "Report on the Programming Language
9797
Haskell 98", is distributed under the following license:
98-
98+
9999
Copyright (c) 2002 Simon Peyton Jones
100-
100+
101101
The authors intend this Report to belong to the entire Haskell
102102
community, and so we grant permission to copy and distribute it for
103103
any purpose, provided that it is reproduced in its entirety,
104104
including this Notice. Modified versions of this Report may also be
105105
copied and distributed for any purpose, provided that the modified
106106
version is clearly presented as such, and that it does not claim to
107107
be a definition of the Haskell 98 Language.
108-
108+
109109
-----------------------------------------------------------------------------
110-
110+
111111
Code derived from the document "The Haskell 98 Foreign Function
112112
Interface, An Addendum to the Haskell 98 Report" is distributed under
113113
the following license:
114-
114+
115115
Copyright (c) 2002 Manuel M. T. Chakravarty
116-
116+
117117
The authors intend this Report to belong to the entire Haskell
118118
community, and so we grant permission to copy and distribute it for
119119
any purpose, provided that it is reproduced in its entirety,
120120
including this Notice. Modified versions of this Report may also be
121121
copied and distributed for any purpose, provided that the modified
122122
version is clearly presented as such, and that it does not claim to
123123
be a definition of the Haskell 98 Foreign Function Interface.
124-
124+
125125
-----------------------------------------------------------------------------
126-
126+
127127
containers LICENSE file:
128128

129129
The Glasgow Haskell Compiler License
@@ -161,7 +161,7 @@ containers LICENSE file:
161161
directory LICENSE file:
162162

163163
This library (libraries/base) is derived from code from two
164-
sources:
164+
sources:
165165

166166
* Code from the GHC project which is largely (c) The University of
167167
Glasgow, and distributable under a BSD-style license (see below),
@@ -177,22 +177,22 @@ directory LICENSE file:
177177

178178
The Glasgow Haskell Compiler License
179179

180-
Copyright 2004, The University Court of the University of Glasgow.
180+
Copyright 2004, The University Court of the University of Glasgow.
181181
All rights reserved.
182182

183183
Redistribution and use in source and binary forms, with or without
184184
modification, are permitted provided that the following conditions are met:
185185

186186
- Redistributions of source code must retain the above copyright notice,
187187
this list of conditions and the following disclaimer.
188-
188+
189189
- Redistributions in binary form must reproduce the above copyright notice,
190190
this list of conditions and the following disclaimer in the documentation
191191
and/or other materials provided with the distribution.
192-
192+
193193
- Neither name of the University nor the names of its contributors may be
194194
used to endorse or promote products derived from this software without
195-
specific prior written permission.
195+
specific prior written permission.
196196

197197
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF
198198
GLASGOW AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
@@ -451,7 +451,7 @@ pattern-arrows LICENSE file:
451451
process LICENSE file:
452452

453453
This library (libraries/process) is derived from code from two
454-
sources:
454+
sources:
455455

456456
* Code from the GHC project which is largely (c) The University of
457457
Glasgow, and distributable under a BSD-style license (see below),
@@ -467,22 +467,22 @@ process LICENSE file:
467467

468468
The Glasgow Haskell Compiler License
469469

470-
Copyright 2004, The University Court of the University of Glasgow.
470+
Copyright 2004, The University Court of the University of Glasgow.
471471
All rights reserved.
472472

473473
Redistribution and use in source and binary forms, with or without
474474
modification, are permitted provided that the following conditions are met:
475475

476476
- Redistributions of source code must retain the above copyright notice,
477477
this list of conditions and the following disclaimer.
478-
478+
479479
- Redistributions in binary form must reproduce the above copyright notice,
480480
this list of conditions and the following disclaimer in the documentation
481481
and/or other materials provided with the distribution.
482-
482+
483483
- Neither name of the University nor the names of its contributors may be
484484
used to endorse or promote products derived from this software without
485-
specific prior written permission.
485+
specific prior written permission.
486486

487487
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF
488488
GLASGOW AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,

RELEASE-0.2.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,64 +10,64 @@ Many thanks to the [contributors](https://github.com/purescript/purescript/graph
1010
- RankNTypes
1111

1212
This experimental feature allows polymorphic types (introduced with `forall`) to appear on the left of a function arrow, or as the type of a record field, etc. For example:
13-
13+
1414
rank2 :: (forall a. a -> a) -> Number
1515
rank2 = \f -> if f true then f 1 else f 2
16-
16+
1717
- Modules
1818
- Polymorphic Object Update
1919

2020
Records now support member update in which the type of the field changes during the update. For example:
2121

2222
data Wrap a = Wrap a
23-
23+
2424
update = \o -> o { prop = Wrap o.prop }
2525

2626
### Enhancements
2727

2828
- Naked expressions as statements
29-
29+
3030
Naked expressions of type `{}` can now be used as statements.
3131

3232
- Split code generation into `AST -> JS` and `JS -> String`
33-
33+
3434
JavaScript generation is now split into the generation of a JavaScript AST, and the pretty-printing of that AST. This enables some optimizations, and a better JavaScript pretty-printer.
35-
35+
3636
- Syntactic sugar for introducing curried functions
37-
37+
3838
Single-argument functions and multiple-argument functions can now be introduced in the same way:
3939

4040
test = \a (b, c) d -> a + b + c + d
4141

4242
- JavaScript optimizations
4343

4444
Some basic dead-variable elimination, inlining and eta-conversion are now performed on the generated JavaScript.
45-
45+
4646
- Generate formatted Javascript
4747

4848
The generated JavaScript is now formatted to be more readable. In particular, newlines get generated, and the correct indentation is used.
4949

5050
- More valid infix operators
51-
51+
5252
The colon and period characters are now valid in infix operator names.
5353

5454
### Syntax Changes
5555

5656
- Avoid 'do' keyword for blocks
57-
57+
5858
`do` will be used later for Haskell-like monad comprehensions, so its previous use in introducing blocks of statements is now invalid. The `do` keyword is still reserved.
5959

6060
- Member foreign import syntax
6161

62-
A small syntactic addition to the FFI, to support a common use case.
62+
A small syntactic addition to the FFI, to support a common use case.
6363

6464
- Make FFI syntax match Haskell
65-
65+
6666
Use `foreign import` instead of `extern`.
6767

6868
- Make record declaration syntax match Haskell
6969
- Simplify array binders
70-
70+
7171
There are now two types of array binders: cons binders `x : xs -> ...` and array binders `[x, y, z] -> ...` instead of the previously confusing `[x:xs]`.
7272

7373
- Array indexing syntax is ambiguous

RELEASE-0.3.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,40 @@ Many thanks to the [contributors](https://github.com/purescript/purescript/graph
1414
sum (x:xs) = x + sum xs
1515

1616
- Basic support for type classes has been added. Polymorphic types of the form `forall a. (C a) => ...` will not be inferred but can be checked. Type inference still works if all type class instances can be determined. There is not yet support for functionality like GHC's `FlexibleInstances`, `FlexibleContexts` or `MultiParamTypesClasses`. For example:
17-
17+
1818
class Truthy a where
1919
isTrue :: a -> Boolean
20-
20+
2121
instance Truthy Boolean where
2222
isTrue b = b
23-
23+
2424
instance Truthy String where
2525
isTrue "" = false
2626
isTrue _ = true
27-
27+
2828
ifThenElse :: forall a b. (Truthy a) => a -> b -> b -> b
2929
ifThenElse a tr fa = if isTrue a then tr else fa
3030

3131
- There is now support for `do` notation, using the `Monad` type class from the `Prelude` module. For example:
3232

3333
data Maybe = Nothing | Just a
34-
34+
3535
instance Prelude.Monad Maybe where
3636
ret = Just
3737
(>>=) Nothing _ = Nothing
3838
(>>=) (Just a) f = f a
39-
39+
4040
test = do
4141
x <- Just 1
4242
y <- Just 2
4343
ret $ x + y
44-
44+
4545
- There is now a better story for side-effects. The `Eff` module in the `Prelude` defines a monad `Eff e` where e is a row of effect types. The kind system now defines a new kind `!` of effects. Row polymorphism allows different native effects to be interleaved. For example:
4646

4747
test = do
4848
trace "Testing"
4949
throwError "Error!"
50-
50+
5151
has inferred type `forall eff. Eff (trace :: Trace | error :: Error String | eff)`.
5252
See the `/examples/passing/Eff.purs` file for a more in-depth set of examples.
5353
Supported native effects currently include `ST`, `Trace`, `Error` and `DOM` (via the `libraries/jquery` module).

RELEASE-0.4.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ This release saw major contributions from [a number of new contributors](https:/
88
- Try out the latest features [here](http://tryps.functorial.com).
99

1010
## Breaking Changes
11-
11+
1212
- Multiple argument functions are no longer available.
1313
- When used in the browser, PureScript modules are now accessed through `window.PS.<ModuleName>`. The `PS` object name can be changed via the `--browser-namespace` compiler argument.
1414
- The `--run-main` argument has been replaced with `--main` which can now accept a module name in which to find the `main` function.
15-
15+
1616
### New Features
17-
17+
1818
- Dead code elimination. The new compiler argument `--module=` can be used to specify one or more modules that should be kept in the generated code along with their dependencies. If no modules are specified, all code is exported.
19-
19+
2020
### Enhancements
21-
21+
2222
- The `->` and `[]` types are now usable in type class instances.
2323
- The file path is included in syntax error messages.
2424
- Most reserved Javascript names (`return`, `const`, etc) are now usable.
@@ -28,9 +28,9 @@ This release saw major contributions from [a number of new contributors](https:/
2828
- It is no longer necessary to sort modules in order of dependencies manually.
2929
- Case statements matching data constructors no longer generate unnecessary constructor checks at runtime if there is only a single data constructor.
3030
- New optimizer rules were added to inline JavaScript's built-in operators.
31-
31+
3232
### Bug Fixes
33-
33+
3434
- Floats parse correctly.
3535
- Using data constructors in pattern matches now works properly across modules.
3636
- PureScript modules no longer overwrite global objects with the same name.
@@ -43,7 +43,7 @@ This release saw major contributions from [a number of new contributors](https:/
4343
- A bug which allowed skolem variables to escape their scope was add (thanks to Brian McKenna).
4444
- Modules containing mutually recursive type synonyms and data declarations now compile correctly.
4545
- A number of bugs in the optimizer were addressed.
46-
46+
4747
### Libraries
4848

4949
- The `Prelude` has been greatly expanded. Definitions for built-in JavaScript operators have been moved into the Prelude.

RELEASE-0.5.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
- The escape check was removed, since it was too restrictive (paf31)
5555
- The binary operator reordering step was greatly simplified (paf31)
5656
- The Object type constructor can now be referenced explicitly as `Prim.Object` (with kind `# * -> *`) (paf31)
57-
- Optimizations are now enabled by default and can be disabled with the `--no-tco` and `--no-magic-do` flags (garyb)
57+
- Optimizations are now enabled by default and can be disabled with the `--no-tco` and `--no-magic-do` flags (garyb)
5858
- Unary minus and signed numeric literals are now supported again (paf31, garyb)
5959
- Type errors have been simplified, the full trace can be enabled with `--verbose-errors` or `-v` (paf31)
6060
- Error messages now display source positions (paf31, garyb)
@@ -63,7 +63,7 @@
6363
- `(++)` is now an alias for the Semigroup operator `(<>)` (paf31)
6464
- Error messages for classes with undefined or missing members have been improved (garyb)
6565
- The SYB dependency was removed, and traversals rewritten by hand, for a large performance increase (paf31)
66-
66+
6767
### Bug Fixes
6868

6969
- The subsumes relation has been fixed for object types (paf31)
@@ -94,6 +94,6 @@
9494
- The `grunt-purescript` plugin has been updated to provide support for new command line options.
9595
- There is a new `gulp-purescript` plugin available for compiling with Gulp.
9696

97-
### Documentation
97+
### Documentation
9898

9999
- There is a new `hierarchy` executable which will generate `.dot` diagrams based on the type class hierarchy of a module. The Prelude docs have been updated to include such a type class diagram. (joneshf)

0 commit comments

Comments
 (0)