# Template project for nightly ghc testing

**URL:** <https://discourse.haskell.org/t/template-project-for-nightly-ghc-testing/7151>\
**Category:** Haskell Foundation\
**Created:** [July 31, 2023, 6:39pm UTC](https://discourse.haskell.org/t/template-project-for-nightly-ghc-testing/7151 "2023-07-31T18:39:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jappie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/jappie/32/5394_2.png) [@Jappie](https://discourse.haskell.org/u/Jappie)\
**Post date:** [July 31, 2023, 6:39pm UTC](https://discourse.haskell.org/t/template-project-for-nightly-ghc-testing/7151/1 "2023-07-31T18:39:19Z")

</div>

Hi,

If you are a library maintainer or a commercial user of Haskell, we’ve got good news for you! We’ve created a template project for running GHC nightly builds. This will allow you to detect incompatibilities _before_ they make it into a GHC release and inform the GHC developers! You can check it out [here](https://github.com/jappeace/haskell-nightly).

The template project uses GitHub Actions to automatically install the nightly GHC release through [ghcup](https://www.haskell.org/ghcup/), and uses [head.hackage](https://ghc.gitlab.haskell.org/head.hackage/) to build your project in a cron job. If the build fails, it’ll automatically open an issue, which will notify you of the failure and allow you to react.

This is an effort of the Haskell Foundation Stability Working Group! If you see other ways to help Haskell upgrades go more smoothly, please [get in touch](https://github.com/haskellfoundation/stability).

---

<div class="post-metadata">

**Author:** ![brandonchinn178](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/brandonchinn178/32/5103_2.png) [@brandonchinn178](https://discourse.haskell.org/u/brandonchinn178)\
**Post date:** [July 31, 2023, 8:13pm UTC](https://discourse.haskell.org/t/template-project-for-nightly-ghc-testing/7151/2 "2023-07-31T20:13:05Z")

</div>

FWIW `haskell-actions/setup` will soon have support for nightly, so you wont need to install ghcup yourself:

> <https://github.com/haskell-actions/setup/pull/20>
>
> Resolves #19

---

<div class="post-metadata">

**Author:** ![Jappie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/jappie/32/5394_2.png) [@Jappie](https://discourse.haskell.org/u/Jappie)\
**Post date:** [July 31, 2023, 8:29pm UTC](https://discourse.haskell.org/t/template-project-for-nightly-ghc-testing/7151/3 "2023-07-31T20:29:32Z")

</div>

so the setup action supports that, would this work instead of the current install action?

```haskell
    - uses: haskell-actions/setup@vX
    - name: set ghcup
      run: |
          ghcup --url-source https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml set ghc latest-nightly

```

---

<div class="post-metadata">

**Author:** ![brandonchinn178](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/brandonchinn178/32/5103_2.png) [@brandonchinn178](https://discourse.haskell.org/u/brandonchinn178)\
**Post date:** [August 1, 2023, 12:59am UTC](https://discourse.haskell.org/t/template-project-for-nightly-ghc-testing/7151/4 "2023-08-01T00:59:41Z")

</div>

The PR isnt merged yet, but you can see the README change in the PR to see what using nightly would look like

---

<div class="post-metadata">

**Author:** ![facundominguez](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/facundominguez/32/3486_2.png) [@facundominguez](https://discourse.haskell.org/u/facundominguez)\
**Post date:** [September 19, 2024, 3:26pm UTC](https://discourse.haskell.org/t/template-project-for-nightly-ghc-testing/7151/5 "2024-09-19T15:26:08Z")

</div>

👋 Hello! I’m giving it [a try](https://github.com/ucsd-progsys/liquidhaskell/commit/65be754db8281cde0a12001edc3e1b3eb4b9699b) in Liquid Haskell. Thanks for sharing the template!

I also tried installing the nightly [via haskell-actions](https://github.com/ucsd-progsys/liquidhaskell/commit/94668086b68ef3f3ba3a2f92f2ed068c7edee712), but that is not working [out of the box](https://github.com/ucsd-progsys/liquidhaskell/actions/runs/10943769091/job/30384192468).
