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

Commit

Permalink
bump uri to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzcreek committed Sep 15, 2017
1 parent 1b755a2 commit c3218e6
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 c3218e6

Please sign in to comment.