Fix for darwin M1
This commit is contained in:
parent
65f02a5a7a
commit
ca89112a8e
@ -2,6 +2,7 @@
|
|||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE DataKinds #-}
|
{-# LANGUAGE DataKinds #-}
|
||||||
{-# LANGUAGE MultiWayIf #-}
|
{-# LANGUAGE MultiWayIf #-}
|
||||||
|
{-# LANGUAGE CApiFFI #-}
|
||||||
|
|
||||||
{-|
|
{-|
|
||||||
Module : GHCup.Utils.File.Posix
|
Module : GHCup.Utils.File.Posix
|
||||||
@ -450,7 +451,7 @@ copyFile from to fail' = do
|
|||||||
streamlyCopy (fH, tH) =
|
streamlyCopy (fH, tH) =
|
||||||
S.fold (FH.writeChunks tH) $ IFH.toChunksWithBufferOf (256 * 1024) fH
|
S.fold (FH.writeChunks tH) $ IFH.toChunksWithBufferOf (256 * 1024) fH
|
||||||
|
|
||||||
foreign import ccall unsafe "open"
|
foreign import capi unsafe "fcntl.h open"
|
||||||
c_open :: CString -> CInt -> Posix.CMode -> IO CInt
|
c_open :: CString -> CInt -> Posix.CMode -> IO CInt
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user