Skip to content

Commit 5b76f23

Browse files
committed
Remove obsolete CPP
1 parent 85c2b3c commit 5b76f23

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/System/IO/HVIO.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE Safe #-}
32

43
{- arch-tag: HVIO main file
@@ -358,9 +357,7 @@ class (Show a) => HVIO a where
358357
instance HVIO Handle where
359358
vClose = hClose
360359
vIsEOF = hIsEOF
361-
#ifdef __GLASGOW_HASKELL__
362360
vShow = hShow
363-
#endif
364361
vMkIOError h et desc mfp =
365362
mkIOError et desc (Just h) mfp
366363
vGetChar = hGetChar

src/System/Path.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,12 @@ mktmpdir x =
111111
createDirectory dirname 0o700
112112
return dirname
113113
#else
114-
#ifdef __GLASGOW_HASKELL__
115114
mktmpdir x =
116115
do (fp, h) <- openTempFile "" x
117116
hClose h
118117
removeFile fp
119118
createDirectory fp
120119
return fp
121-
#else
122-
mktmpdir _ = fail "mktmpdir not supported on Windows unless you have GHC"
123-
#endif
124120
#endif
125121

126122
{- | Creates a temporary directory for your use via 'mktmpdir',

0 commit comments

Comments
 (0)