Skip to content

Update to purescript 0.12 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"output"
],
"dependencies": {
"purescript-console": "^3.0.0"
"purescript-console": "^4.2.0"
},
"devDependencies": {
"purescript-psci-support": "^3.0.0",
"purescript-test-unit": "^11.0.0"
"purescript-psci-support": "^4.0.0",
"purescript-test-unit": "^14.0.0"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "pulp build -I test -- --censor-lib --strict --stash && pulp test"
},
"devDependencies": {
"purescript-psa": "^0.4.0",
"purescript-psa": "^0.7.3",
"rimraf": "^2.5.0"
}
}
10 changes: 3 additions & 7 deletions test/Conditional.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ module Test.Conditional where

import Prelude ((&&), (||), ($), (+), (*), Unit, discard)
import Conditional ((?))
import Control.Monad.Eff (Eff)
import Control.Monad.Aff.AVar (AVAR)
import Control.Monad.Eff.Console (CONSOLE)
import Effect (Effect)
import Test.Unit (describe, it)
import Test.Unit.Main (runTest)
import Test.Unit.Assert (shouldEqual)
import Test.Unit.Console (TESTOUTPUT)


x :: Int
Expand All @@ -26,9 +23,8 @@ y' = if (false && true) then (3 + 5) else (5 * 2)



main :: forall e
. Eff (console :: CONSOLE, testOutput :: TESTOUTPUT, avar :: AVAR | e) Unit
main = runTest do
testConditional :: Effect Unit
testConditional = runTest do
describe "ifelse" do
it "should return the same value as the equivalent if else statement" $ do
x `shouldEqual` x'
Expand Down
9 changes: 9 additions & 0 deletions test/Main.purs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Test.Main where

import Prelude

import Effect (Effect)
import Test.Conditional (testConditional)

main :: Effect Unit
main = testConditional