clr-win-linker: A GHC linker wrapper tool to workaround a GHC >8.2 bug

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.


Please see

[Skip to ReadMe]


Change logNone available
Dependenciesbase (>=4.7 && <5), directory, pipes, pipes-safe, process [details]
Copyright2017 Tim Matthews
AuthorTim Matthews
CategoryLanguage, FFI, CLR, .NET
Home page
UploadedTue Apr 25 17:30:22 UTC 2017 by PepeIborra


Maintainers' corner

For package maintainers and hackage trustees

Readme for clr-win-linker-

[back to package description]

This package provides small utility to backport GHC bug fix #12186 for GHC versions < 8.2

It works by being specified as the linker, where it will simply do a find and replace on the supplied linker args before passing the result on to the real linker.

To build & install, run the following:

stack install clr-win-linker

Which will copy the resulting executable to the path, usually 'C:\Users<name>\AppData\Roaming\local\bin'

Then specify as the linker when building other packages like so:

stack build --ghc-options="-pgml clr-win-linker"

And the resulting executables should then get past ghc issue #12186:

stack exec clr-test-app