Skip to content

Commit

Permalink
refined WalkingshawVariant to reuse Artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbittner committed Nov 3, 2023
1 parent 19a2610 commit d21751a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Framework/V2/Variants.agda
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ open import Relation.Binary using (Setoid)
import Relation.Binary.PropositionalEquality as Eq

open import Framework.V2.Definitions using (𝕍; 𝔸)
open import Framework.V2.Constructs.Artifact using (Artifact)

import Data.IndexedSet

data GrulerVariant : 𝕍 where
asset : {A : 𝔸} (a : A) GrulerVariant A
_∥_ : {A : 𝔸} (l : GrulerVariant A) (r : GrulerVariant A) GrulerVariant A

data WalkingshawVariant : 𝕍 where
-- TODO: Use Artifact Construct here.
_-<_>- : {A : 𝔸} (a : A) List (WalkingshawVariant A) WalkingshawVariant A
data Rose : 𝕍 where
artifact : {A : 𝔸} Artifact A (Rose A) Rose A

VariantSetoid : 𝕍 𝔸 Setoid 0ℓ 0ℓ
VariantSetoid V A = Eq.setoid (V A)
Expand Down

0 comments on commit d21751a

Please sign in to comment.