Fix T15729 and T3001-2 in master

Authored by watashi on Oct 17 2018, 11:14 AM.



They failed when running ./validate on master

T15729 is added by me in D5219 recently,
it failed when GHCi is dynamicly linked:

Stderr ( T15729 ):
/bin/ error: bss.o: requires unsupported dynamic reloc 11;
recompile with -fPIC
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)

T3001-2 didn't compile with error:

T3001-2.hs:292:5: error: [-Wnoncanonical-monoid-instances (in -Wcompat),
    Noncanonical ‘mappend’ definition detected
    in the instance declaration for ‘Monoid Builder’.
    Define as ‘mappend = (<>)’
Test Plan

Both tests pass now.

Diff Detail

rGHC Glasgow Haskell Compiler
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
watashi created this revision.Oct 17 2018, 11:14 AM
This revision is now accepted and ready to land.Oct 17 2018, 2:06 PM
This revision was automatically updated to reflect the committed changes.