Skip to content

Commit 9e37398

Browse files
committed
Merge pull request #7 from purescript-contrib/0.6.1
Update for 0.6.1
2 parents ebdbd76 + 1119e73 commit 9e37398

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = function(grunt) {
2222

2323
dotPsci: ["<%=libFiles%>"],
2424

25-
docgen: {
25+
pscDocs: {
2626
readme: {
2727
src: "src/**/*.purs",
2828
dest: "README.md"
@@ -53,6 +53,6 @@ module.exports = function(grunt) {
5353
grunt.loadNpmTasks("grunt-purescript");
5454

5555
grunt.registerTask("test", ["pscMake:tests", "copy", "execute:tests"]);
56-
grunt.registerTask("make", ["pscMake:lib", "dotPsci", "docgen:readme"]);
56+
grunt.registerTask("make", ["pscMake:lib", "dotPsci", "pscDocs:readme"]);
5757
grunt.registerTask("default", ["clean", "make", "test"]);
5858
};

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
newtype LazyList a where
224224
LazyList :: List a -> LazyList a
225225

226-
type List = L.ListT Lazy
226+
type List = L.ListT Lazy
227227

228228

229229
### Type Class Instances

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"grunt-contrib-copy": "~0.5.0",
1212
"grunt-contrib-clean": "~0.5.0",
1313
"grunt-execute": "~0.1.5",
14-
"grunt-purescript": "~0.5.0"
14+
"grunt-purescript": "~0.6.0"
1515
}
1616
}

src/Data/List.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ null Nil = true
218218
null _ = false
219219

220220
span :: forall a. (a -> Boolean) -> List a -> Tuple (List a) (List a)
221-
span p (Cons x xs) | p x =
222-
case span p xs of
223-
Tuple ys zs -> Tuple (Cons x ys) zs
224-
span _ xs = Tuple Nil xs
221+
span p xs@(Cons x xs')
222+
| p x = case span p xs' of
223+
Tuple ys zs -> Tuple (Cons x ys) zs
224+
| otherwise = Tuple Nil xs
225225

226226
group :: forall a. (Eq a) => List a -> List (List a)
227227
group = groupBy (==)

0 commit comments

Comments
 (0)