Skip to content

Instantly share code, notes, and snippets.

@liamoc
Created January 30, 2016 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liamoc/4e7981de3c406dc90579 to your computer and use it in GitHub Desktop.
Save liamoc/4e7981de3c406dc90579 to your computer and use it in GitHub Desktop.
module bugreport where
open import Data.Nat
open import Data.Bool hiding (_≟_)
open import Relation.Nullary
⸤_⸥ : {A : Set} → Dec A → Bool
⸤ yes _ ⸥ = true
⸤ no _ ⸥ = false
record State : Set where
field var₁ : Bool
field var₂ : ℕ
open State ⦃ ... ⦄
postulate Program : Set → Set
postulate guard : ∀{S : Set} → (S → Bool) → Program S
test₃ : Program State
test₃ = guard (λ σ → var₁) -- works
test₂ : Program State
test₂ = guard {State} (λ σ → ⸤ var₂ ≟ 0 ⸥) -- works
test₁ : Program State
test₁ = guard (λ σ → ⸤ var₂ ≟ 0 ⸥) -- doesn't work, used to work in agda 2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment