File tree 2 files changed +0
-7
lines changed
2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change 1
- {-# LANGUAGE CPP #-}
2
1
{-# LANGUAGE Safe #-}
3
2
4
3
{- arch-tag: HVIO main file
@@ -358,9 +357,7 @@ class (Show a) => HVIO a where
358
357
instance HVIO Handle where
359
358
vClose = hClose
360
359
vIsEOF = hIsEOF
361
- #ifdef __GLASGOW_HASKELL__
362
360
vShow = hShow
363
- #endif
364
361
vMkIOError h et desc mfp =
365
362
mkIOError et desc (Just h) mfp
366
363
vGetChar = hGetChar
Original file line number Diff line number Diff line change @@ -111,16 +111,12 @@ mktmpdir x =
111
111
createDirectory dirname 0o700
112
112
return dirname
113
113
#else
114
- #ifdef __GLASGOW_HASKELL__
115
114
mktmpdir x =
116
115
do (fp, h) <- openTempFile " " x
117
116
hClose h
118
117
removeFile fp
119
118
createDirectory fp
120
119
return fp
121
- #else
122
- mktmpdir _ = fail " mktmpdir not supported on Windows unless you have GHC"
123
- #endif
124
120
#endif
125
121
126
122
{- | Creates a temporary directory for your use via 'mktmpdir',
You can’t perform that action at this time.
0 commit comments