Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yairchu/macos11-haskell-workaround

Make Haskell work on macOS again!
https://github.com/yairchu/macos11-haskell-workaround

Last synced: 23 days ago
JSON representation

Make Haskell work on macOS again!

Awesome Lists containing this project

README

        

# MacOS 11 Haskell Work-around

A work around for a bug in older GHCs (<= 8.10.3) on macOS 11 "Big Sur" (bug #18446).

Details at: https://gitlab.haskell.org/ghc/ghc/-/issues/18446

This work-around should allow using affected GHC versions in macOS 11.

Build:

clang -target x86_64-darwin -dynamiclib macos11ghcwa.c -o macos11ghcwa.dylib

Use:

DYLD_INSERT_LIBRARIES=/macos11ghcwa.dylib stack args

To test one can use (with and without the fix):

stack exec -- runghc --ghc-arg="-framework OpenGL" Test.hs

DYLD_INSERT_LIBRARIES=`pwd`/macos11ghcwa.dylib stack exec -- runghc --ghc-arg="-framework OpenGL" Test.hs