diff --git a/haskell/haddock.bzl b/haskell/haddock.bzl index c0a61ae48e..f717cf031f 100644 --- a/haskell/haddock.bzl +++ b/haskell/haddock.bzl @@ -193,7 +193,7 @@ def _haskell_doc_rule_impl(ctx): command = """ mkdir -p "{doc_dir}" # Copy Haddocks of a dependency. - cp -r -L "{html_dir}" "{target_dir}" + cp -R -L "{html_dir}" "{target_dir}" """.format( doc_dir = doc_root_path, html_dir = html_dir.path, diff --git a/haskell/import.bzl b/haskell/import.bzl index 1535c96283..7f39dee256 100644 --- a/haskell/import.bzl +++ b/haskell/import.bzl @@ -39,7 +39,7 @@ def copy_all(ctx, srcs, dest): inputs = depset(srcs), outputs = [dest], mnemonic = "Copy", - command = "mkdir -p {dest} && cp -L -r \"$@\" {dest}".format(dest = dest.path), + command = "mkdir -p {dest} && cp -L -R \"$@\" {dest}".format(dest = dest.path), arguments = [args], )