hlint-plugin-1.0.2: GHC plugin for hlint
Safe HaskellSafe-Inferred
LanguageHaskell2010

HLint.Plugin.Settings

Contents

Description

This module is inspired by:

https://github.com/tfausak/splint/blob/9028a8b631568dc5d16a74153b1a9b6e3cde0fe6/src/lib/Splint/Settings.hs

… in order to work around this issue (just like splint does):

https://gitlab.haskell.org/ghc/ghc/issues/18261

Without this workaround the GHC plugin will fail with something like this error message:

ghc-9.6.2(82937,0x16e83b000) malloc: *** error for object 0x600000a4d5c0: pointer being freed was not allocated
ghc-9.6.2(82937,0x16e83b000) malloc: *** set a breakpoint in malloc_error_break to debug
Synopsis

Settings

argsSettings :: [String] -> IO (ParseFlags, [Classify], Hint) Source #

This is a drop-in replacement for Language.Haskell.HLint.argsSettings, except that this is safe to run in parallel.