Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a MINIMAL pragma to Ord and check existence of other MINIMAL pragmas #6270

Open
effectfully opened this issue Jun 28, 2024 · 0 comments
Open

Comments

@effectfully
Copy link
Contributor

PlutusTx.Ord.Ord lacks a MINIMAL pragma meaning it's easy to cause an infinite loop by defining an instance of this class. We should simply take the pragma from base (where that code is stolen from):

{-# MINIMAL compare | (<=) #-}

and check existence of MINIMAL pragmas for all the other type classes where such a pragma applies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant