`COMPILE to` definitions from `Haskell.*` modules
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- compilers
Research direction
Start by reproducing the example in the issue, comparing the working Vec mapping to List with the failing Fin mapping to Nat. Then trace how COMPILE AGDA2HS handles datatype targets from Haskell.* modules and identify what blocks Nat; done means the example compiles with the intended mapping. The issue does not name source files or tests.
Written by the indexing model from the issue text.
Description
While COMPILE ... to List is supported, it seems that agda2hs doesn't support COMPILE ... to Nat and other datatypes from Haskell.* modules.
{-# OPTIONS --erasure #-}
module Issue where
open import Haskell.Prelude
private variable
@0 n : Nat
-- Works
data Vec (a : Type) : @0 Nat → Type where
[] : Vec a zero
_∷_ : a → Vec a n → Vec a (suc n)
{-# COMPILE AGDA2HS Vec to List #-}
emptyVec : Vec a 0
emptyVec = []
{-# COMPILE AGDA2HS emptyVec #-}
-- Doesn't work
data Fin : @0 Nat → Type where
zero : Fin (suc n)
suc : Fin n → Fin (suc n)
{-# COMPILE AGDA2HS Fin to Nat #-}
fzero : Fin 1
fzero = zero
{-# COMPILE AGDA2HS fzero #-}
- Dominant language
- Agda
- Stars
- 211
- Forks
- 51
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
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
-
bug library
Difficulty 4/5 3-5 days Newbie friendliness 49/100
agda/agda2hs#487 · 3 comments ·
Maintainers usually reply within 1 day
-
Skipping compilation for up-to-date files results in mis-compilationPossibly taken @jespercockx claimed this 1 day 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
Similar issues
-
std::fdim drops partial derivative w.r.t second argument in forward and reverse modePossibly taken @ADITYASINGH1206 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
vgvassilev/clad#2534 ·
Maintainers usually reply within 1 day
-
Bug: regex replacement on non-String property throws ClassCastException at runtimePossibly taken @aafanasev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
KhronosGroup/SPIRV-Cross#2743 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day