File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ New features:
1111Bugfixes:
1212
1313Other improvements:
14+ - Rename `uneffectfulHref` to `hrefPure` (used in `Show` instance) (#21 by @JordanMartinez)
1415
1516## [v7.0.0](https://github.com/purescript-node/purescript-node-url/releases/tag/v7.0.0) - 2023-07-31
1617
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const hostnameImpl = (u) => u.hostname;
1515export const setHostnameImpl = (val, u) => {
1616 u.hostname = val;
1717};
18- export const uneffectfulHref = (u) => u.href;
18+ export const hrefPure = (u) => u.href;
1919export const hrefImpl = (u) => u.href;
2020export const setHrefImpl = (val, u) => {
2121 u.href = val;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ import Prim.Row as Row
4949foreign import data URL :: Type
5050
5151instance Show URL where
52- show x = "URL(" <> uneffectfulHref x <> ")"
52+ show x = "URL(" <> hrefPure x <> ")"
5353
5454new :: String -> Effect URL
5555new input = runEffectFn1 newImpl input
@@ -96,7 +96,8 @@ setHostname val url = runEffectFn2 setHostnameImpl val url
9696
9797foreign import setHostnameImpl :: EffectFn2 String URL Unit
9898
99- foreign import uneffectfulHref :: URL -> String
99+ -- do not export
100+ foreign import hrefPure :: URL -> String
100101
101102href :: URL -> Effect String
102103href url = runEffectFn1 hrefImpl url
You can’t perform that action at this time.
0 commit comments