Hi Laurent,
Thanks for taking the time to check this. I'm very confused by your reply. I'm not sure what you mean when you say you changed my script and then "it worked".
So we're all clear: I wrote this script to demonstrate a problem for the benefit of explaining what I am trying to do. The script is not for my static site. It is entirely written for explaining my situation to you good people while I evaluate hakyll. I expect the script to fail in the `check` function for everyone and print the message "failed on modified example"
The Hakyll installation instructions show how to install hakyll and use hakyll-init to create an example project:
https://jaspervdj.be/hakyll/tutorials/01-installation.htmlWhen I followed these instructions I did see that the example static site was correctly generated. `site check` shows no dead links.
My script first does this too: builds it and checks it. It shows that it works!
Then the script changes the file extensions, patterns, rebuilds the site executable with cabal and rebuilds the static site with the site executable.
Then it runs check again but that time it fails to generate the site correctly and `site check` shows there are dead links.
It looks like you have changed the test script so that it no longer demonstrates the problem. It no longer calls the `site` executable built by `hakyll-init`.
You do not need the script to see the problem. All you have to do is call hakyll-init, rename about.rst to about.md and contact.markdown to contact.md then update the site.hs file to use the two new filenames. Then you must run `cabal build` and if you have previously run `site build` you must also run `site rebuild`. At that point you can see the site did not correctly generate and you can confirm this by running `site check`. Or you can just run the script to see this.
I would like to understand why the problem is happening and how to fix it. I don't want help to modify the test script so that it does not fail to demonstrate the problem.
Also your modified script failed for me with the message:
```
When using configuration(s) from /Users/christo/tmp/hakyll-test/cabal.project, the following errors occurred:
The package location 'test.cabal' does not exist.
```
If I have misunderstood your intentions here I'm sorry!
Chris