-
Notifications
You must be signed in to change notification settings - Fork 40
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 new module Dec for decidability proofs (compiled to Bool) #247
Conversation
lib/Haskell/Extra/Dec.agda
Outdated
@@ -0,0 +1,27 @@ | |||
module Haskell.Extra.Dec where | |||
|
|||
open import Haskell.Prelude hiding (Reflects) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think you could remove the old definition of Reflects
? and maybe just define patterns synonyms for ofY
and ofN
if you don't want to touch Haskell.Law
too much.
On a side note, I don't think anything from Haskell.Law
should be exported in Haskell.Prelude
.
Currently, this module (if it was compiled to Haskell) would generate a single type alias Two ways to go about it:
|
Ideally we would not compile |
Yeah, I was also thinking about your other opened PRs defining modules in |
That "close PR" button is altogether too close to the "comment" button |
I've updated this PR to address your comments @flupe , the commits should be self-explanatory. |
Very nice! So currently putting inline after the identifier in the |
No description provided.