Skip to content

Commit

Permalink
Merge pull request #3 from f-o-a-m/safareli-patch-1
Browse files Browse the repository at this point in the history
add Ord
  • Loading branch information
safareli authored Oct 16, 2018
2 parents 72e0aac + 10c544c commit 7a8fce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/WebMercator/LngLat.purs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import WebMercator.Internal (approximateEqual)
newtype LngLat = LngLat (Array Number)

derive newtype instance eqLngLat :: Eq LngLat
derive newtype instance ordLngLat :: Ord LngLat
instance showLngLat :: Show LngLat where
show p = "(LngLat.make {lng: " <> show (lng p) <> ", lat: " <> show (lat p) <> "})"

Expand Down
1 change: 1 addition & 0 deletions src/WebMercator/Pixel.purs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import WebMercator.Internal (approximateEqual)
newtype Pixel = Pixel (Array Number)

derive newtype instance eqPixel :: Eq Pixel
derive newtype instance ordPixel :: Ord Pixel
instance showPixel :: Show Pixel where
show p = "(Pixel.make {x: " <> show (x p) <> ", y: " <> show (y p) <> "})"

Expand Down

0 comments on commit 7a8fce7

Please sign in to comment.