Skip to content

Commit

Permalink
Don't use QuasiQuotes
Browse files Browse the repository at this point in the history
This extension is unused and can't be used in boot libraries
  • Loading branch information
wz1000 committed Nov 14, 2024
1 parent f0b7bf7 commit a5d9e1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion System/File/OsPath/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE QuasiQuotes #-}

module System.File.OsPath.Internal where

Expand Down
6 changes: 3 additions & 3 deletions windows/System/File/Platform.hsc
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE PackageImports #-}

module System.File.Platform where

import Control.Exception (bracketOnError, try, SomeException, onException)
import Data.Bits
import Data.Maybe (fromJust)
import System.IO (IOMode(..), Handle)
import System.OsPath.Windows ( WindowsPath )
import qualified System.OsPath.Windows as WS
import Foreign.C.Types

import qualified System.OsString.Windows as WS hiding (decodeFS)
import System.OsString.Windows ( pstr, WindowsString )
import System.OsString.Windows ( encodeUtf, WindowsString )
import qualified System.Win32 as Win32
import qualified System.Win32.WindowsString.File as WS
import System.Win32.WindowsString.Types (withTString, peekTString)
Expand Down Expand Up @@ -160,7 +160,7 @@ findTempName :: (WindowsString, WindowsString)
findTempName (prefix, suffix) loc tmp_dir mode = go
where
go = do
let label = if prefix == mempty then [pstr|ghc|] else prefix
let label = if prefix == mempty then fromJust (encodeUtf "ghc") else prefix
#if MIN_VERSION_Win32(2, 14, 0)
withFilePath tmp_dir $ \c_tmp_dir ->
#else
Expand Down

0 comments on commit a5d9e1c

Please sign in to comment.