Skip to content

Commit 3153d04

Browse files
facundominguezmergify-bot
authored andcommitted
Comment on why we need to drop some messages produced by GHC.
1 parent 40427ff commit 3153d04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

haskell/private/ghc_wrapper.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ if [ "$2" == "--persistent_worker" ]; then
1212
# wrapping GHC. Not ready for production usage.
1313
exec "${compile_flags[@]}" --persistent_worker
1414
else
15+
# Drop messages that GHC produces on features that we rely upon.
16+
#
17+
# "Loaded" is emitted when using GHC environment files, which we
18+
# use as poor man's response files for GHC.
19+
#
20+
# "Warning: the following files ..." is produced when we tell GHC
21+
# to load object files in the interpreter in the build action
22+
# of haskell_module which doesn't do any linking.
1523
while IFS= read -r line; do extra_args+=("$line"); done < "$2"
1624
"${compile_flags[@]}" "${extra_args[@]}" 2>&1 \
1725
| while IFS= read -r line; do [[ $line =~ ^(Loaded|Warning: the following files would be used as linker inputs, but linking is not being done:) ]] || echo "$line"; done >&2

0 commit comments

Comments
 (0)