File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ New features:
11
11
Bugfixes:
12
12
13
13
Other improvements:
14
+ - Rename ` uneffectfulHref ` to ` hrefPure ` (used in ` Show ` instance) (#21 by @JordanMartinez )
14
15
15
16
## [ v7.0.0] ( https://github.com/purescript-node/purescript-node-url/releases/tag/v7.0.0 ) - 2023-07-31
16
17
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const hostnameImpl = (u) => u.hostname;
15
15
export const setHostnameImpl = ( val , u ) => {
16
16
u . hostname = val ;
17
17
} ;
18
- export const uneffectfulHref = ( u ) => u . href ;
18
+ export const hrefPure = ( u ) => u . href ;
19
19
export const hrefImpl = ( u ) => u . href ;
20
20
export const setHrefImpl = ( val , u ) => {
21
21
u . href = val ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ import Prim.Row as Row
49
49
foreign import data URL :: Type
50
50
51
51
instance Show URL where
52
- show x = " URL(" <> uneffectfulHref x <> " )"
52
+ show x = " URL(" <> hrefPure x <> " )"
53
53
54
54
new :: String -> Effect URL
55
55
new input = runEffectFn1 newImpl input
@@ -96,7 +96,8 @@ setHostname val url = runEffectFn2 setHostnameImpl val url
96
96
97
97
foreign import setHostnameImpl :: EffectFn2 String URL Unit
98
98
99
- foreign import uneffectfulHref :: URL -> String
99
+ -- do not export
100
+ foreign import hrefPure :: URL -> String
100
101
101
102
href :: URL -> Effect String
102
103
href url = runEffectFn1 hrefImpl url
You can’t perform that action at this time.
0 commit comments