File tree Expand file tree Collapse file tree 4 files changed +15
-22
lines changed Expand file tree Collapse file tree 4 files changed +15
-22
lines changed Original file line number Diff line number Diff line change 11language : node_js
22dist : trusty
33sudo : required
4- node_js : 6
5- env :
6- - PATH=$HOME/purescript:$PATH
4+ node_js : 10
75install :
8- - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/v0.11.3/linux64.tar.gz
9- - tar -xvf $HOME/purescript.tar.gz -C $HOME/
10- - chmod a+x $HOME/purescript
11- - npm install -g bower pulp
6+ - npm install -g bower pulp purescript@0.12.0
127script :
13- - npm install && bower install && pulp test
8+ - bower install && pulp test
149after_success :
1510- >-
1611 test $TRAVIS_TAG &&
Original file line number Diff line number Diff line change 1515 "url" : " https://github.com/nwolverson/purescript-csv.git"
1616 },
1717 "dependencies" : {
18- "purescript-parsing " : " ^4 .0.0" ,
19- "purescript-arrays " : " ^4 .0.1 " ,
20- "purescript-maps " : " ^3 .0.0 "
18+ "purescript-arrays " : " ^5 .0.0" ,
19+ "purescript-ordered-collections " : " ^1 .0.0 " ,
20+ "purescript-parsing " : " ^5 .0.1 "
2121 },
2222 "devDependencies" : {
23- "purescript-console" : " ^3.0 .0" ,
24- "purescript-quickcheck" : " ^4 .0.0" ,
25- "purescript-test-unit" : " ^11 .0.0"
23+ "purescript-console" : " ^4.1 .0" ,
24+ "purescript-quickcheck" : " ^5 .0.0" ,
25+ "purescript-test-unit" : " ^14 .0.0"
2626 }
2727}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Control.Alt ((<|>))
66import Data.Array (some )
77import Data.Foldable (all )
88import Data.List (List (..), zip )
9- import Data.String (fromCharArray , toCharArray , singleton )
9+ import Data.String.CodeUnits (fromCharArray , toCharArray , singleton )
1010import Text.Parsing.Parser (Parser )
1111import Text.Parsing.Parser.Combinators (sepEndBy , sepBy1 , between )
1212import Text.Parsing.Parser.String (eof , satisfy , string )
@@ -32,7 +32,7 @@ makeChars xs = do
3232 fromCharArray <$> some char
3333 where
3434 char = satisfy $ excluded xs
35- excluded ys = \x -> all id $ terms ys <*> [x]
35+ excluded ys = \x -> all identity $ terms ys <*> [x]
3636 terms ys = map (/=) $ toCharArray ys
3737
3838makeQchars :: Char -> P String
Original file line number Diff line number Diff line change 11module Test.Main where
22
33import Prelude
4- import Data.Map as M
5- import Control.Monad.Aff.AVar (AVAR )
6- import Control.Monad.Eff (Eff )
7- import Control.Monad.Eff.Console (CONSOLE )
4+
85import Data.Either (Either (Left, Right))
96import Data.List (fromFoldable , List , head )
7+ import Data.Map as M
108import Data.Maybe (fromMaybe )
9+ import Effect (Effect )
1110import Test.Unit (test )
1211import Test.Unit.Assert (assert )
13- import Test.Unit.Console (TESTOUTPUT )
1412import Test.Unit.Main (runTest )
1513import Text.Parsing.CSV (P , Parsers , defaultParsers , makeParsers )
1614import Text.Parsing.Parser (runParser )
@@ -45,7 +43,7 @@ testFileResult = fromFoldable $ fromFoldable <$> testData
4543testFileEmptyEndLineResult :: List (List String )
4644testFileEmptyEndLineResult = fromFoldable $ fromFoldable <$> testData <> [[" " ]]
4745
48- main :: ∀ e . Eff ( avar :: AVAR , testOutput :: TESTOUTPUT , console ∷ CONSOLE | e ) Unit
46+ main :: Effect Unit
4947main = runTest do
5048 test " chars" do
5149 assert " parses chars" $ parses defaultParsers.chars " abc" " abc"
You can’t perform that action at this time.
0 commit comments