-
Notifications
You must be signed in to change notification settings - Fork 691
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* I have added a function "dieWithException" which will replace the die' calls and throws Error types as exception. CabalException will hold all ErrorTypes, types will be incrementally added per module. The VerboseException a will have CabalException and cabalInstallException variously in the a position Utils.hs 1. Creation of Error data types 2. Diewithexception and exceptionCode function 3. Instance for VerboseException Bench.hs and install.hs 1. Replaced die' call sites with dieWithException Right now I have only added errors from two modules Distribtuion/Simple/Bench and Distribution/Simple/Install. Error types will be added incrementally. * Codebase is formatted with fourmolu and compiled without warnings. * Enabled fourmolu action * Running fourmolu through github action as the previous ones failed. * Function `exceptionWithMetadata` and constructors for each exception type * I have added a function "dieWithException" which will replace the die' calls and throws Error types as exception. CabalException will hold all ErrorTypes, types will be incrementally added per module. The VerboseException a will have CabalException and cabalInstallException variously in the a position Utils.hs 1. Creation of Error data types 2. Diewithexception and exceptionCode function 3. Instance for VerboseException Bench.hs and install.hs 1. Replaced die' call sites with dieWithException Right now I have only added errors from two modules Distribtuion/Simple/Bench and Distribution/Simple/Install. Error types will be added incrementally. * Codebase is formatted with fourmolu and compiled without warnings. * Enabled fourmolu action * Running fourmolu through github action as the previous ones failed. * Function `exceptionWithMetadata` and constructors for each exception type * Updated changelog * PatternMatching cases of diewithexception and displayexception reduced * Delete fourmolu.yaml This file is redundant. * Delete settings.json This file is redundant. * Replaced die' calls for modules srcDist.hs and HcPkg.hs * Replaced die' calls in modules `build.hs`,`Haddock.hs` and `Program.hs` * Replaced die' calls in modules `Build.hs`, `Haddock.hs` and `Program.hs` * Replaced die' calls in modules `GHCJS.hs`, `HaskellSuite.hs` and `BuildPaths.hs` * Formatted the codebase with Fourmolu * Accepted the new output with error codes and adding the file relevant to the test * Changes in `Utils.hs` and `Errors.hs` to reflect the new error codes * Keeping rip intact * test changes * CallStack unmarked from the error output * callstack unmarked from output * unmarked callstack in test output * Format the codebase with fourmolu * Changed to Error identifier to "Cabal-" * Updated Constructors as per review comments * Rectifying Hlint warning --------- Co-authored-by: Gershom Bazerman <gershom@arista.com>
- Loading branch information
Showing
22 changed files
with
402 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.