Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from kRITZCREEK/bump-uri
Browse files Browse the repository at this point in the history
bump uri to v4
  • Loading branch information
cryogenian authored Sep 15, 2017
2 parents 1b755a2 + c3218e6 commit 3d75ee0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"purescript-dom-classy": "^2.1.0",
"purescript-transformers": "^3.2.0",
"purescript-control": "^3.0.0",
"purescript-uri": "^3.0.0",
"purescript-uri": "^4.0.0",
"purescript-colors": "^3.0.0",
"purescript-symbols": "^3.0.0",
"purescript-canvas": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion example/src/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mkLatLngs = do
testURI URIRef
testURI =
Left $ URI.URI
(Just $ URI.URIScheme "http")
(Just $ URI.Scheme "http")
(URI.HierarchicalPart
(Just $ URI.Authority Nothing [(URI.NameAddress "{s}.tile.osm.org") × Nothing])
(Just $ Right $ rootDir </> dir "{z}" </> dir "{x}" </> file "{y}.png"))
Expand Down
5 changes: 3 additions & 2 deletions src/Leaflet/Core/Converter.purs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import Prelude
import Color (Color, toHexString)

import Data.Foldable (intercalate)
import Data.URI (URIRef, printURIRef)
import Data.URI (URIRef)
import Data.URI.URIRef as URIRef

import Leaflet.Core.Types as T
import Leaflet.Util ((×), (∘))
Expand All @@ -24,7 +25,7 @@ type ConvertDict =

converter ConvertDict
converter =
{ printURI: printURIRef
{ printURI: URIRef.print
, mkPoint: \(a × b) → [a, b]
, printColor: toHexString
, convertLatLng: \{lat, lng} → [lat, lng]
Expand Down

0 comments on commit 3d75ee0

Please sign in to comment.