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:
2525New features:
2626- Added ` fromKillSignal ` (#51 by @JordanMartinez )
2727- Added ` pidExists ` (#53 by @JordanMartinez )
28- - Export ` toUnsafeChildProcess ` (#54 by @JordanMartinez )
28+ - Export ` toUnsafeChildProcess ` (#55 by @JordanMartinez )
2929- Added ` stdio ` (#55 by @JordanMartinez )
30+ - Added ` Show ` instance to ` Shell ` & ` KillSignal ` (#58 by @JordanMartinez )
3031
3132Other improvements:
3233- 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 + "" ;
13export const fromKillSignalImpl = ( left , right , sig ) => {
24 const ty = typeof sig ;
35 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)
7272
7373foreign import data KillSignal :: Type
7474
75+ instance Show KillSignal where
76+ show = showKillSignal
77+
78+ foreign import showKillSignal :: KillSignal -> String
79+
7580intSignal :: Int -> KillSignal
7681intSignal = unsafeCoerce
7782
@@ -85,6 +90,11 @@ foreign import fromKillSignalImpl :: Fn3 (forall l r. l -> Either l r) (forall l
8590
8691foreign import data Shell :: Type
8792
93+ instance Show Shell where
94+ show = showShell
95+
96+ foreign import showShell :: Shell -> String
97+
8898enableShell :: Shell
8999enableShell = unsafeCoerce true
90100
You can’t perform that action at this time.
0 commit comments