Posts

SOH_2023-Structured errors and error codes for cabal-install

Image
  Structured errors and Error codes for Cabal-Install - SoH '23 Contributor  :  Suganya Raju Mentor          :  Gershom Bazerman The Haskell error Index site https://errors.haskell.org/ describes the error messages produced by the various Haskell related tools. This project is to refactor the cabal codebase to provide structured errors rather than mere strings, and also assign codes to corresponding cabal errors that can be added to the error index . In the same vein as GHC and other Haskell related tools, the work of this project is moving away from the current way of signaling errors with ` die'` to something that allows more structure. The end goal is to have package-specific error data types, where each constructor of such a data type will represent one error corresponding to the error that the module can throw. Benefits of Structured Errors: Users have an easier time contributing documentation for how to work around various situations that may arise, so more docs may exi