Skip to content

Commit

Permalink
Merge pull request #4 from f-o-a-m/compiler/0.12
Browse files Browse the repository at this point in the history
0.12 Updates
  • Loading branch information
safareli authored Nov 29, 2018
2 parents 7a8fce7 + 9f5c983 commit da5bf8b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
12 changes: 6 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"package.json"
],
"dependencies": {
"purescript-partial": "^1.2.1",
"purescript-prelude": "^3.3.0",
"purescript-functions": "^3.0.0"
"purescript-partial": "^2.0.0",
"purescript-prelude": "^4.0.0",
"purescript-functions": "^4.0.0"
},
"devDependencies": {
"purescript-eff": "^3.2.1",
"purescript-assert": "^3.1.0",
"purescript-record": "^0.2.6"
"purescript-effect": "^2.0.0",
"purescript-assert": "^4.0.0",
"purescript-record": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
},
"devDependencies": {
"eslint": "^3.17.1",
"purescript": "^0.12.0",
"pulp": "^12.2.0",
"purescript": "^0.11.7",
"purescript-psa": "^0.6.0"
},
"dependencies": {
Expand Down
11 changes: 5 additions & 6 deletions test/Test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ module Test.Main where

import Prelude

import Control.Monad.Eff (Eff)
import Effect (Effect)
import Effect.Console (log)
import WebMercator.Viewport (Viewport, ViewportR)
import WebMercator.Viewport as Viewport
import WebMercator.Pixel (Pixel)
import WebMercator.Pixel as Pixel
import WebMercator.LngLat (LngLat)
import WebMercator.LngLat as LngLat
import Control.Monad.Eff.Console (log, CONSOLE)
import Test.Assert (ASSERT, assert)
import Data.Record (equal)
import Test.Assert (assert)

main :: forall eff. Eff (console :: CONSOLE, assert :: ASSERT | eff) Unit
main :: Effect Unit
main = do
log "project"
let projected = Viewport.project vp pos
Expand All @@ -28,7 +27,7 @@ main = do
assert $ unprojected `LngLat.approxEq` pos

log "unViewport"
assert $ Viewport.unpack vp `equal` vpR
assert $ Viewport.unpack vp == vpR

pos :: LngLat
pos = LngLat.make {lng: -122.43, lat: 37.75}
Expand Down

0 comments on commit da5bf8b

Please sign in to comment.