-
Notifications
You must be signed in to change notification settings - Fork 409
Add --safe-except-for-sized-types? #4908
Copy link
Copy link
Open
Labels
safeSubset of Agda features which is expected to be consistentSubset of Agda features which is expected to be consistentsized typesSized types, termination checking with sized types, size inferenceSized types, termination checking with sized types, size inferencestatus: blocked-by-issueThis pull request is blocked on an open issue.This pull request is blocked on an open issue.type: discussionDiscussions about Agda's design and implementationDiscussions about Agda's design and implementationux: optionsIssues relating to Agda's command line optionsIssues relating to Agda's command line options
Milestone
Description
Given that we have some long-standing consistency bugs related to sized types it makes sense to disallow sized types when --safe is active. However, I have quite a bit of code that uses sized types, and I'd like Agda to check that I'm not using other unsafe features. Thus it might make sense to add a flag like --safe-except-for-sized-types.
An alternative would be to add a more general flag with support for other unsafe features: --safe-except-for=…. Does anyone see a use for the more general variant?
A different approach would be to list the features that are allowed: --language=…. Then one could enumerate features like "user-defined data types", "pattern matching", and so on. However, implementing this option might be non-trivial.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
safeSubset of Agda features which is expected to be consistentSubset of Agda features which is expected to be consistentsized typesSized types, termination checking with sized types, size inferenceSized types, termination checking with sized types, size inferencestatus: blocked-by-issueThis pull request is blocked on an open issue.This pull request is blocked on an open issue.type: discussionDiscussions about Agda's design and implementationDiscussions about Agda's design and implementationux: optionsIssues relating to Agda's command line optionsIssues relating to Agda's command line options