@@ -98,7 +98,7 @@ import Control.DeepSeq (NFData, rnf)
98
98
-- 'readCreateProcessWithExitCodeCommunicationHandle' provides a high-level API
99
99
-- to this functionality. See there for example code.
100
100
--
101
- -- @since 1.7.0 .0
101
+ -- @since 1.6.19 .0
102
102
newtype CommunicationHandle =
103
103
CommunicationHandle
104
104
##if defined(mingw32_HOST_OS)
@@ -115,7 +115,7 @@ type HANDLE = Ptr ()
115
115
## endif
116
116
#endif
117
117
118
- -- @since 1.7.0 .0
118
+ -- @since 1.6.19 .0
119
119
instance Show CommunicationHandle where
120
120
showsPrec p (CommunicationHandle h) =
121
121
showsPrec p
@@ -124,7 +124,7 @@ instance Show CommunicationHandle where
124
124
##endif
125
125
h
126
126
127
- -- @since 1.7.0 .0
127
+ -- @since 1.6.19 .0
128
128
instance Read CommunicationHandle where
129
129
readsPrec p str =
130
130
fmap
@@ -138,14 +138,14 @@ instance Read CommunicationHandle where
138
138
-- | Turn the 'CommunicationHandle' into a 'Handle' that can be read from
139
139
-- in the current process.
140
140
--
141
- -- @since 1.7.0 .0
141
+ -- @since 1.6.19 .0
142
142
openCommunicationHandleRead :: CommunicationHandle -> IO Handle
143
143
openCommunicationHandleRead = useCommunicationHandle True
144
144
145
145
-- | Turn the 'CommunicationHandle' into a 'Handle' that can be writte to
146
146
-- in the current process.
147
147
--
148
- -- @since 1.7.0 .0
148
+ -- @since 1.6.19 .0
149
149
openCommunicationHandleWrite :: CommunicationHandle -> IO Handle
150
150
openCommunicationHandleWrite = useCommunicationHandle False
151
151
@@ -212,7 +212,7 @@ foreign import ccall "reOpenFileOverlapped"
212
212
-- Use this to close the 'CommunicationHandle' in the parent process after
213
213
-- the 'CommunicationHandle' has been inherited by the child process.
214
214
--
215
- -- @since 1.7.0 .0
215
+ -- @since 1.6.19 .0
216
216
closeCommunicationHandle :: CommunicationHandle -> IO ()
217
217
closeCommunicationHandle (CommunicationHandle ch) =
218
218
hClose =<< getGhcHandle ch
@@ -259,7 +259,7 @@ getGhcHandle fd = fdToHandle fd
259
259
--
260
260
-- See 'CommunicationHandle'.
261
261
--
262
- -- @since 1.7.0 .0
262
+ -- @since 1.6.19 .0
263
263
createWeReadTheyWritePipe :: IO (Handle , CommunicationHandle )
264
264
createWeReadTheyWritePipe = createCommunicationPipe id
265
265
@@ -268,7 +268,7 @@ createWeReadTheyWritePipe = createCommunicationPipe id
268
268
--
269
269
-- See 'CommunicationHandle'.
270
270
--
271
- -- @since 1.7.0 .0
271
+ -- @since 1.6.19 .0
272
272
createTheyReadWeWritePipe :: IO (CommunicationHandle , Handle )
273
273
createTheyReadWeWritePipe = sw <$> createCommunicationPipe sw
274
274
where
@@ -356,7 +356,7 @@ foreign import ccall "mkNamedPipe" c_mkNamedPipe ::
356
356
-- > hPut hWrite $ someFn input
357
357
-- > hClose hWrite
358
358
--
359
- -- @since 1.7.0 .0
359
+ -- @since 1.6.19 .0
360
360
readCreateProcessWithExitCodeCommunicationHandle
361
361
:: NFData a
362
362
=> ((CommunicationHandle , CommunicationHandle ) -> CreateProcess )
0 commit comments