Skip to content

Commit

Permalink
[ re agda#357 ] Make Erase type play nice with instance search
Browse files Browse the repository at this point in the history
  • Loading branch information
jespercockx committed Sep 9, 2024
1 parent 03c9aae commit 2d085c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Haskell/Extra/Erase.agda
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ module Haskell.Extra.Erase where
@0 xs : List a

record Erase (@0 a : Set ℓ) : Setwhere
constructor Erased
field @0 get : a
instance constructor iErased
field @0 {{get}} : a
open Erase public
{-# COMPILE AGDA2HS Erase tuple #-}

pattern Erased x = iErased {{x}}

infixr 4 ⟨_⟩_
record Σ0 (@0 a : Set) (b : @0 a Set) : Set where
constructor ⟨_⟩_
Expand Down

0 comments on commit 2d085c1

Please sign in to comment.