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

deriveEq doesn't care about implicit arguments (not sure if intended) #1

Open
redfish64 opened this issue Sep 27, 2020 · 1 comment

Comments

@redfish64
Copy link
Contributor

I don't know if this is intended behavior or not:

import Language.Elab.Deriving.Eq

%language ElabReflection

data XXX : Type where
  MkXXX : {a : Int} -> XXX

%runElab deriveEq Export `{{XXX}}

--returns True
testXXX : Bool
testXXX = MkXXX {a = 5} == MkXXX {a = 7}
@redfish64 redfish64 changed the title deriveEq doesn't work with Implicit arguments (not sure if intended) deriveEq doesn't care about implicit arguments (not sure if intended) Sep 27, 2020
@MarcelineVQ
Copy link
Owner

MarcelineVQ commented Sep 28, 2020

It was intended at first but probably shouldn't be, I'll change that in the near future.
Even Show should probably be showing implicits or have a choice of whether you derive a show that does or not.

I'm not quite sure what to do with auto-implicits just yet though, possibly https://github.com/david-christiansen/derive-all-the-instances has some hints

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

No branches or pull requests

2 participants