A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/agda/agda/issues/7225 below:

Named errors instead of Generic[Doc]Error · Issue #7225 · agda/agda · GitHub

We have currently short of 250 places where we throw a GenericError or GenericDocError.

/src/full/Agda$ 
grep -R '[^_][gG]eneric\(Doc\)\?[eE]rror' --include="*.hs" \
  --exclude=./TypeChecking/Monad/Base.hs --exclude=./TypeChecking/Errors.hs \
  | wc
     247    2584   25145

The mid-term plan is to replace these by properly named errors.
The name of the error can then be printed as part of the error message.
Expected benefits:

Steps to implement:

The current list of occurrences is (2024-04-15):

/src/full/Agda[issue-7181]$ 
grep -Rc '[^_][gG]eneric\(Doc\)\?[eE]rror' --include="*.hs" \
  --exclude=./TypeChecking/Monad/Base.hs --exclude=./TypeChecking/Errors.hs \
  | grep -v ':0' | sort

Suggested prioritization:

  1. type checker
  2. scope checker
  3. interaction
  4. compiler

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4