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

Agda internally eta-reduces when it shouldn't #275

Open
omelkonian opened this issue Feb 9, 2024 · 0 comments
Open

Agda internally eta-reduces when it shouldn't #275

omelkonian opened this issue Feb 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@omelkonian
Copy link
Contributor

omelkonian commented Feb 9, 2024

A sub-bug of #273 is that Agda is performing an η-reduction that creates a mismatch between what the user wrote and what the user gets on the Haskell side, e.g.

open import Haskell.Prelude

postulate f : Int  Int

test : Int  Int
test x = f x
{-# COMPILE AGDA2HS test #-}
test :: Int -> Int
test = f

We could investigate how to either instruct Agda not to do these, or reverse the effect if that's impossible in Agda internals.

@omelkonian omelkonian added the enhancement New feature or request label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant