Skip to content

Commit a5d9e1c

Browse files
committed
Don't use QuasiQuotes
This extension is unused and can't be used in boot libraries
1 parent f0b7bf7 commit a5d9e1c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

System/File/OsPath/Internal.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{-# LANGUAGE TypeApplications #-}
33
{-# LANGUAGE BangPatterns #-}
44
{-# LANGUAGE ViewPatterns #-}
5-
{-# LANGUAGE QuasiQuotes #-}
65

76
module System.File.OsPath.Internal where
87

windows/System/File/Platform.hsc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{-# LANGUAGE CPP #-}
22
{-# LANGUAGE TypeApplications #-}
3-
{-# LANGUAGE QuasiQuotes #-}
43
{-# LANGUAGE PackageImports #-}
54

65
module System.File.Platform where
76

87
import Control.Exception (bracketOnError, try, SomeException, onException)
98
import Data.Bits
9+
import Data.Maybe (fromJust)
1010
import System.IO (IOMode(..), Handle)
1111
import System.OsPath.Windows ( WindowsPath )
1212
import qualified System.OsPath.Windows as WS
1313
import Foreign.C.Types
1414

1515
import qualified System.OsString.Windows as WS hiding (decodeFS)
16-
import System.OsString.Windows ( pstr, WindowsString )
16+
import System.OsString.Windows ( encodeUtf, WindowsString )
1717
import qualified System.Win32 as Win32
1818
import qualified System.Win32.WindowsString.File as WS
1919
import System.Win32.WindowsString.Types (withTString, peekTString)
@@ -160,7 +160,7 @@ findTempName :: (WindowsString, WindowsString)
160160
findTempName (prefix, suffix) loc tmp_dir mode = go
161161
where
162162
go = do
163-
let label = if prefix == mempty then [pstr|ghc|] else prefix
163+
let label = if prefix == mempty then fromJust (encodeUtf "ghc") else prefix
164164
#if MIN_VERSION_Win32(2, 14, 0)
165165
withFilePath tmp_dir $ \c_tmp_dir ->
166166
#else

0 commit comments

Comments
 (0)