Skip to content

Commit

Permalink
Work around for agda/agda2hs#346
Browse files Browse the repository at this point in the history
  • Loading branch information
jespercockx committed Jul 27, 2024
1 parent 42832b0 commit 11bbc77
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Agda/Core/Conversion.agda
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ data ConvBranches {@0 α} : @0 Branches α cs → @0 Branches α cs → Set wher
ConvBranches bs1 bs2
ConvBranches (BsCons b1 bs1) (BsCons b2 bs2)


{-# COMPILE AGDA2HS Conv #-}
{-# COMPILE AGDA2HS ConvBranch #-}
{-# COMPILE AGDA2HS ConvBranches #-}
{-# COMPILE AGDA2HS ConvSubst #-}

infix 3 Conv
syntax Conv x y = x ≅ y
syntax ConvSubst us vs = us ⇔ vs
Expand Down Expand Up @@ -117,3 +111,9 @@ data ConvSubst {α} where
u ≅ v
us ⇔ vs
(SCons {x = x} u us) ⇔ (SCons {x = x} v vs)

-- These have to be here, see https://github.com/agda/agda2hs/issues/346
{-# COMPILE AGDA2HS Conv #-}
{-# COMPILE AGDA2HS ConvBranch #-}
{-# COMPILE AGDA2HS ConvBranches #-}
{-# COMPILE AGDA2HS ConvSubst #-}

0 comments on commit 11bbc77

Please sign in to comment.