Skip to content

Commit bf5b860

Browse files
committed
Update to latest grunt-purescript, fix use of indexOf
1 parent 6a05dfa commit bf5b860

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Gruntfile.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ module.exports = function(grunt) {
66

77
clean: ["externs", "js"],
88

9-
"purescript": {
9+
psc: {
1010
options: {
11-
tco: true,
12-
main: true,
13-
magicDo: true
11+
main: true
1412
},
1513
lib: {
1614
src:
@@ -27,5 +25,5 @@ module.exports = function(grunt) {
2725
grunt.loadNpmTasks("grunt-purescript");
2826
grunt.loadNpmTasks("grunt-contrib-clean");
2927

30-
grunt.registerTask("default", ["purescript:lib"]);
28+
grunt.registerTask("default", ["psc"]);
3129
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"devDependencies": {
55
"grunt": "~0.4.4",
6-
"grunt-purescript": "~0.4.0",
6+
"grunt-purescript": "~0.5.0",
77
"grunt-contrib-clean": "~0.5.0"
88
}
99
}

src/Text/Parsing/Parser/String.purs.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ eof = do
2323
string :: forall m. (Monad m) => String -> ParserT String m String
2424
string s = do
2525
s' <- get
26-
case indexOf s' s of
26+
case indexOf s s' of
2727
0 -> do
2828
put (Consumed true)
2929
put (substring (length s) (length s') s')

0 commit comments

Comments
 (0)