# Modern GHC for osx build?

**URL:** <https://travis-ci.community/t/modern-ghc-for-osx-build/8419>\
**Category:** macOS\
**Tags:** haskell\
**Created:** [May 1, 2020, 2:54am UTC](https://travis-ci.community/t/modern-ghc-for-osx-build/8419 "2020-05-01T02:54:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edka](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Edka](https://travis-ci.community/u/Edka)\
**Post date:** [May 1, 2020, 2:54am UTC](https://travis-ci.community/t/modern-ghc-for-osx-build/8419/1 "2020-05-01T02:54:11Z")

</div>

I am trying to build a Haskell project on `osx` but it it fails with the message [No such ghc version ‘8.8.3’](https://travis-ci.org/github/EduardSergeev/vscode-ghci-debugger/jobs/681778953). The parallel build on linux [works just fine](https://travis-ci.org/github/EduardSergeev/vscode-ghci-debugger/jobs/681778954).

Is there a _fast way_ to add GHC 8.8 on osx?  
Of course I can just use homebrew to install it but due to the recent problem with [Unknown command: bundle](https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296) I had to use [update: true](https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/10) which makes the build [unbearably slow](https://travis-ci.org/github/EduardSergeev/vscode-ghci-debugger/jobs/681568565#L89) (~3x times slower).

Is there anything I can do add more modern than [default 7.10.3](https://travis-ci.org/github/EduardSergeev/vscode-ghci-debugger/jobs/681778953#L72) GHC to `osx` build?

UPDATE: In fact even 7.10.3 [fails on osx](https://travis-ci.org/github/EduardSergeev/vscode-ghci-debugger/jobs/681790019#L70-L74).

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [May 1, 2020, 3:35am UTC](https://travis-ci.community/t/modern-ghc-for-osx-build/8419/2 "2020-05-01T03:35:10Z")

</div>

I don’t remember a time when we developed Haskell support with macOS in mind; the [`travis_ghc_install`](https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/bash/travis_ghc_install.bash#L1) function that installs `ghc` is based on `apt`, and as such it works only on Ubuntu.
