Skip to content

Commit

Permalink
[ re #357 ] Erase type arguments of mapDec
Browse files Browse the repository at this point in the history
The types a and b do not appear in Haskell code, so they should be marked as erased
  • Loading branch information
jespercockx committed Sep 24, 2024
1 parent aafa987 commit 8073476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Haskell/Extra/Dec.agda
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ Dec : ∀ {ℓ} → @0 Set ℓ → Set ℓ
Dec P = ∃ Bool (Reflects P)
{-# COMPILE AGDA2HS Dec inline #-}

mapDec : @0 (a b)
mapDec : {@0 a b : Set}
@0 (a b)
@0 (b a)
Dec a Dec b
mapDec f g (True ⟨ x ⟩) = True ⟨ f x ⟩
Expand Down

0 comments on commit 8073476

Please sign in to comment.