Skip to content

Commit f7d91cd

Browse files
authored
Merge pull request #49 from purescript/compiler/0.12
Update for PureScript 0.12
2 parents daae61d + ab8a337 commit f7d91cd

File tree

8 files changed

+38
-30
lines changed

8 files changed

+38
-30
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/bower_components/
55
/node_modules/
66
/output/
7+
package-lock.json

LICENSE

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
1-
The MIT License (MIT)
1+
Copyright 2018 PureScript
22

3-
Copyright (c) 2014 PureScript
3+
Redistribution and use in source and binary forms, with or without modification,
4+
are permitted provided that the following conditions are met:
45

5-
Permission is hereby granted, free of charge, to any person obtaining a copy of
6-
this software and associated documentation files (the "Software"), to deal in
7-
the Software without restriction, including without limitation the rights to
8-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9-
the Software, and to permit persons to whom the Software is furnished to do so,
10-
subject to the following conditions:
6+
1. Redistributions of source code must retain the above copyright notice, this
7+
list of conditions and the following disclaimer.
118

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
9+
2. Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation and/or
11+
other materials provided with the distribution.
1412

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13+
3. Neither the name of the copyright holder nor the names of its contributors
14+
may be used to endorse or promote products derived from this software without
15+
specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
21+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

bower.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "purescript-control",
33
"homepage": "https://github.com/purescript/purescript-control",
4-
"description": "Common control classes and utility functions",
5-
"license": "MIT",
4+
"license": "BSD-3-Clause",
65
"repository": {
76
"type": "git",
87
"url": "git://github.com/purescript/purescript-control.git"
@@ -17,9 +16,9 @@
1716
"package.json"
1817
],
1918
"dependencies": {
20-
"purescript-prelude": "^3.0.0"
19+
"purescript-prelude": "^4.0.0"
2120
},
2221
"devDependencies": {
23-
"purescript-eff": "^3.1.0"
22+
"purescript-effect": "^2.0.0"
2423
}
2524
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"test": "pulp test"
77
},
88
"devDependencies": {
9-
"pulp": "^12.0.1",
10-
"purescript-psa": "^0.5.0-rc.1",
11-
"rimraf": "^2.6.1"
9+
"pulp": "^12.2.0",
10+
"purescript-psa": "^0.6.0",
11+
"rimraf": "^2.6.2"
1212
}
1313
}

src/Control/Extend.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Control.Extend
66
, module Data.Functor
77
) where
88

9-
import Control.Category (id)
9+
import Control.Category (identity)
1010

1111
import Data.Functor (class Functor, map, void, ($>), (<#>), (<$), (<$>))
1212
import Data.Semigroup (class Semigroup, (<>))
@@ -56,4 +56,4 @@ infixr 1 composeCoKleisliFlipped as =<=
5656
-- |
5757
-- | `duplicate` is dual to `Control.Bind.join`.
5858
duplicate :: forall a w. Extend w => w a -> w (w a)
59-
duplicate = extend id
59+
duplicate = extend identity

src/Control/Lazy.purs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ instance lazyUnit :: Lazy Unit where
2020
-- |
2121
-- | The `Lazy` instance allows us to generate the result lazily.
2222
fix :: forall l. Lazy l => (l -> l) -> l
23-
fix f = defer (\_ -> f (fix f))
23+
fix f = go
24+
where
25+
go = defer \_ -> f go

test/Test/Control/Lazy.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module Test.Control.Lazy (testLazy) where
22

33
import Control.Applicative (pure)
4-
import Control.Monad.Eff (Eff)
54
import Control.Lazy (fix)
65
import Data.Unit (Unit, unit)
6+
import Effect (Effect)
77

88
foo :: forall a. a -> Unit
99
foo _ = unit
@@ -15,5 +15,5 @@ foo' :: forall a. a -> Unit
1515
foo' = fix foofoo
1616

1717
-- the idea here is that foo and foo' are the same function
18-
testLazy :: Eff () Unit
18+
testLazy :: Effect Unit
1919
testLazy = pure (foo' unit)

test/Test/Main.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module Test.Main (main) where
22

3-
import Control.Monad.Eff (Eff)
3+
import Effect (Effect)
44
import Data.Unit (Unit)
55

66
import Test.Control.Lazy (testLazy)
77

8-
main :: Eff () Unit
8+
main :: Effect Unit
99
main = testLazy

0 commit comments

Comments
 (0)