Skip to content

Commit 9987383

Browse files
Fix warnings revealed by v0.14.1 PS release (#85)
* Fix warnings revealed by v0.14.1 PS release * Update changelog
1 parent 2f5fd0e commit 9987383

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ New features:
1111
Bugfixes:
1212

1313
Other improvements:
14+
- Fix warnings revealed by v0.14.1 PS release (#85 by @JordanMartinez)
1415

1516
## [v6.0.0](https://github.com/purescript/purescript-foreign/releases/tag/v6.0.0) - 2021-02-26
1617

src/Foreign/Index.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ hasOwnPropertyImpl :: forall k. k -> Foreign -> Boolean
5555
hasOwnPropertyImpl _ value | isNull value = false
5656
hasOwnPropertyImpl _ value | isUndefined value = false
5757
hasOwnPropertyImpl p value | typeOf value == "object" || typeOf value == "function" = runFn2 unsafeHasOwnProperty p value
58-
hasOwnPropertyImpl _ value = false
58+
hasOwnPropertyImpl _ _ = false
5959

6060
foreign import unsafeHasProperty :: forall k. Fn2 k Foreign Boolean
6161

6262
hasPropertyImpl :: forall k. k -> Foreign -> Boolean
6363
hasPropertyImpl _ value | isNull value = false
6464
hasPropertyImpl _ value | isUndefined value = false
6565
hasPropertyImpl p value | typeOf value == "object" || typeOf value == "function" = runFn2 unsafeHasProperty p value
66-
hasPropertyImpl _ value = false
66+
hasPropertyImpl _ _ = false
6767

6868
instance indexString :: Monad m => Index String m where
6969
index = flip readProp

0 commit comments

Comments
 (0)