[ANNOUNCE] GHC 8.2.1 release candidate 3 available

Andrés Sicard-Ramírez asr at eafit.edu.co
Mon Jul 10 00:38:38 UTC 2017

On 9 July 2017 at 11:50, David Feuer <david at well-typed.com> wrote:
> On Sunday, July 9, 2017 1:05:44 AM EDT Andrés Sicard-Ramírez wrote:
>> While testing this RC candidate on Agda we found a compilation error.
>> The error was caused by an *unused* module which *is* compiled by this
>> RC but it *is not* compiled by previous versions of GHC including
>> 8.2.1 RC 2. This module was listed in the `other-modules` field of the
>> `test-suite` section in the .cabal file. After removing the offending
>> module, we didn't find more problems.
>> While I think GHC is doing the right thing here, it is not an obvious
>> error on medium size projects like Agda. This is the reason for
>> sharing this information.
> Are you saying that Cabal is now compiling an unused module with legitimate
> errors that GHC detects?


>From a personal message by Herbert:

On 9 July 2017 at 03:53, Herbert Valerio Riedel <hvriedel at gmail.com> wrote:
>  - Prior to Cabal 2.0, the modules listed in `other-modules` were only
>    passed to GHC for library stanzas, but not to
>    executables/benchmarks/test stanzas.


Let's suppose we have the following information in the .cabal file:

  test-suite foo-test
    other-modules: M1
                           , M2
                           , M3
                           , Bad

where `Bad.hs`

a) is not used by `foo-test` and

b) generates a compilation error.

Due to the above new feature mentioned by Herbert, GHC 8.2.1 RC3/Cabal
2.0 *correctly* report an error in `Bad.hs` but previous versions of
GHC/Cabal don't.


La información contenida en este correo electrónico está dirigida únicamente a su destinatario y puede contener información confidencial, material privilegiado o información protegida por derecho de autor. Está prohibida cualquier copia, utilización, indebida retención, modificación, difusión, distribución o reproducción total o parcial. Si usted recibe este mensaje por error, por favor contacte al remitente y elimínelo. La información aquí contenida es responsabilidad exclusiva de su remitente por lo tanto la Universidad EAFIT no se hace responsable de lo que el mensaje contenga. The information contained in this email is addressed to its recipient only and may contain confidential information, privileged material or information protected by copyright. Its prohibited any copy, use, improper retention, modification, dissemination, distribution or total or partial reproduction. If you receive this message by error, please contact the sender and delete it. The information contained herein is the sole responsibility of the sender therefore Universidad EAFIT is not responsible for what the message contains.

More information about the ghc-devs mailing list