File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,9 @@ Breaking changes:
25
25
New features:
26
26
- Added ` fromKillSignal ` (#51 by @JordanMartinez )
27
27
- Added ` pidExists ` (#53 by @JordanMartinez )
28
- - Export ` toUnsafeChildProcess ` (#54 by @JordanMartinez )
28
+ - Export ` toUnsafeChildProcess ` (#55 by @JordanMartinez )
29
29
- Added ` stdio ` (#55 by @JordanMartinez )
30
+ - Added ` Show ` instance to ` Shell ` & ` KillSignal ` (#58 by @JordanMartinez )
30
31
31
32
Other improvements:
32
33
- Fix regression: add ` ref ` /` unref ` APIs that were dropped in ` v10.0.0 ` (#50 by @JordanMartinez )
Original file line number Diff line number Diff line change
1
+ export const showKillSignal = ( ks ) => ks + "" ;
2
+ export const showShell = ( shell ) => shell + "" ;
1
3
export const fromKillSignalImpl = ( left , right , sig ) => {
2
4
const ty = typeof sig ;
3
5
if ( ty === "number" ) return right ( sig | 0 ) ;
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ defaultStdIO = unsafeCoerce (null :: Nullable String)
72
72
73
73
foreign import data KillSignal :: Type
74
74
75
+ instance Show KillSignal where
76
+ show = showKillSignal
77
+
78
+ foreign import showKillSignal :: KillSignal -> String
79
+
75
80
intSignal :: Int -> KillSignal
76
81
intSignal = unsafeCoerce
77
82
@@ -85,6 +90,11 @@ foreign import fromKillSignalImpl :: Fn3 (forall l r. l -> Either l r) (forall l
85
90
86
91
foreign import data Shell :: Type
87
92
93
+ instance Show Shell where
94
+ show = showShell
95
+
96
+ foreign import showShell :: Shell -> String
97
+
88
98
enableShell :: Shell
89
99
enableShell = unsafeCoerce true
90
100
You can’t perform that action at this time.
0 commit comments