Compare things with α-equivalence
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 57/100
Research direction
Start in src/Agda2Hs/Compile/Function.hs at the two locations linked in the issue, and trace how the compiler compares function types and patterns when compiling extractSoloAnn to extractSolo. The example shows that type variable and pattern variable names may differ under α-equivalence; find the relevant tests and add coverage for this example. Done when the example compiles successfully.
Written by the indexing model from the issue text.
Description
agda2hs complains when compiling the following code currently:
{-# OPTIONS --erasure #-}
module Issue479 where
open import Haskell.Prelude
data Solo (a : Type) : Type where
MkSolo : a → Solo a
{-# COMPILE AGDA2HS Solo #-}
data SoloAnn (@0 a : Type) (b : Type) : Type where
MkSolo : @0 a → b → SoloAnn a b
{-# COMPILE AGDA2HS SoloAnn to Solo #-}
extractSolo : Solo a → a
extractSolo (MkSolo x) = x
{-# COMPILE AGDA2HS extractSolo #-}
extractSoloAnn : ∀ {@0 a} → SoloAnn a b → b -- type var names don't match
extractSoloAnn (MkSolo _ y) = y -- pattern var name don't match
{-# COMPILE AGDA2HS extractSoloAnn to extractSolo #-}
Places to change (probably more?):
- Dominant language
- Agda
- Stars
- 211
- Forks
- 51
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 11
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from agda/agda2hs
-
Refine the fix of #142Possibly taken @jespercockx claimed this 1 day ago. Openenhancement
agda/agda2hs#494 · 1 assignee ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 8/100
Maintainers usually reply within 1 day
-
bug library
Difficulty 4/5 3-5 days Newbie friendliness 45/100
agda/agda2hs#488 · 1 comment ·
Maintainers usually reply within 1 day
-
Skipping compilation for up-to-date files results in mis-compilationPossibly taken @jespercockx claimed this 2 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 52/100
agda/agda2hs#486 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Compile reexport of individual itemsPossibly taken @wasabi315 claimed this 11 days ago. Openenhancement
agda/agda2hs#484 · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
Client codegen: an import repeated in an impl file is emitted twice, and the browser rejects the modulePossibly taken @MalithaPrabhashana claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
jaseci-labs/jac#10756 ·
Maintainers usually reply within 1 day
-
area:interp bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
yidika-lab/yidika#80 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug intrinsic low priority wrong result
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug P1-high
Difficulty 2/5 1-3 hours Newbie friendliness 76/100