Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion System/Posix/Files.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ createSymbolicLink :: FilePath -> FilePath -> IO ()
createSymbolicLink file1 file2 =
withFilePath file1 $ \s1 ->
withFilePath file2 $ \s2 ->
throwErrnoPathIfMinus1_ "createSymbolicLink" file1 (c_symlink s1 s2)
throwErrnoPathIfMinus1_ "createSymbolicLink" file2 (c_symlink s1 s2)

foreign import ccall unsafe "symlink"
c_symlink :: CString -> CString -> IO CInt
Expand Down
2 changes: 1 addition & 1 deletion System/Posix/Files/ByteString.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ createSymbolicLink :: RawFilePath -> RawFilePath -> IO ()
createSymbolicLink file1 file2 =
withFilePath file1 $ \s1 ->
withFilePath file2 $ \s2 ->
throwErrnoPathIfMinus1_ "createSymbolicLink" file1 (c_symlink s1 s2)
throwErrnoPathIfMinus1_ "createSymbolicLink" file2 (c_symlink s1 s2)

foreign import ccall unsafe "symlink"
c_symlink :: CString -> CString -> IO CInt
Expand Down