Skip to content

Add --safe-except-for-sized-types? #4908

@nad

Description

@nad

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    safeSubset of Agda features which is expected to be consistentsized typesSized types, termination checking with sized types, size inferencestatus: blocked-by-issueThis pull request is blocked on an open issue.type: discussionDiscussions about Agda's design and implementationux: optionsIssues relating to Agda's command line options

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions