Commit ab5257cd authored by Committed by Mikhail GlushenkovBrowse files
Control expensive assertions in cabal-install with a build flag.
I added a function, 'debugAssert', that wraps 'assert' and only calls it when the build flag 'debug-assertions' is enabled. The flag defaults to false. I only replaced one call to 'assert' so far (in Distribution.Solver.Modular.Linking) in order to resolve #4258.
Showing with 30 additions and 1 deletion