Skip to content

Commit 9457d3a

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

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{-# LANGUAGE CPP #-}
22
{-# LANGUAGE TypeApplications #-}
3-
{-# LANGUAGE QuasiQuotes #-}
43
{-# LANGUAGE PackageImports #-}
54

65
module System.File.Platform where
@@ -13,7 +12,7 @@ import qualified System.OsPath.Windows as WS
1312
import Foreign.C.Types
1413

1514
import qualified System.OsString.Windows as WS hiding (decodeFS)
16-
import System.OsString.Windows ( pstr, WindowsString )
15+
import System.OsString.Windows ( unsafeEncodeUtf , WindowsString )
1716
import qualified System.Win32 as Win32
1817
import qualified System.Win32.WindowsString.File as WS
1918
import System.Win32.WindowsString.Types (withTString, peekTString)
@@ -160,7 +159,7 @@ findTempName :: (WindowsString, WindowsString)
160159
findTempName (prefix, suffix) loc tmp_dir mode = go
161160
where
162161
go = do
163-
let label = if prefix == mempty then [pstr|ghc|] else prefix
162+
let label = if prefix == mempty then unsafeEncodeUtf "ghc" else prefix
164163
#if MIN_VERSION_Win32(2, 14, 0)
165164
withFilePath tmp_dir $ \c_tmp_dir ->
166165
#else

0 commit comments

Comments
 (0)