Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/juhp/test-ghc-make

Test behaviour of ghc compilation of a package with errors
https://github.com/juhp/test-ghc-make

Last synced: 8 days ago
JSON representation

Test behaviour of ghc compilation of a package with errors

Awesome Lists containing this project

README

        

# test-ghc-make

A toy project to test the compilation behavior with recent ghc:

- It seems until ghc 9.2, builds would stop in the first module (source file) to error.

- With ghc-9.4 and later, building seems to continue until it can proceed no longer (ie until some module requires a module that failed to compile).

## How to test

Run eg:
```
$ make GHC=ghc-9.4.8
```
and see how the behavior changes with the version:
eg 9.0.2/9.2.8 vs 9.4.8/9.6.6/9.8.2

(`ghc --make` etc probably also works: the makefile just removes any build artifacts first)