1
IRUS TotalDownloads
Altmetric
Errors for the Common Man: Hiding the unintelligable in Haskell
File | Description | Size | Format | |
---|---|---|---|---|
error-handling-for-Haskell.pdf | Submitted version | 131.19 kB | Adobe PDF | View/Open |
Title: | Errors for the Common Man: Hiding the unintelligable in Haskell |
Authors: | Sackman, M Eisenbach, S |
Item Type: | Report |
Abstract: | If a library designer takes full advantage of HaskellÆs rich type system and type-level programming capabilities, then the resulting library will frequently inflict huge and unhelpful error messages on the library user. These error messages are typically in terms of the library and do not refer to the call-site of the library by the library user, nor provide any guidance to the user as to how to fix the error. The increasing appetite for programmable type-level computation makes this a critical issue, as the advantages and capabilities of type-level computation are nullified if useful error messages cannot be returned to the user. We present a novel technique that neatly side-steps the default error messages and allows the library programmer to control the generation of error messages that are statically returned to the user. Thus with this technique, there is no longer any drawback to using the full power of HaskellÆs type system. |
Content Version: | Submitted version |
Issue Date: | 30-Sep-2008 |
URI: | http://hdl.handle.net/10044/1/5810 |
Publisher Link: | http://pubs.doc.ic.ac.uk/error-handling-for-Haskell/ |
DOI: | https://doi.org/10.25561/5810 |
Publisher: | Department of Computing, Imperial College |
Start Page: | 1 |
End Page: | 12 |
Copyright Statement: | ©The Author |
Appears in Collections: | Distributed Software Engineering Computing |