A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/agda/agda/issues/7823 below:

DISPLAY matches pattern with wrong amount of arguments · Issue #7823 · agda/agda · GitHub

DISPLAY pragmas can match on patterns with wrong amount of arguments as seen in the following code:

data Nat : Set where
  zero : Nat
  suc : Nat  Nat

postulate
  P : {A : Set}  A  Set
  A : Set

{-# DISPLAY P (suc zero) = A #-}
_ : P suc
_ = zero
-- Nat !=< A
-- should be: Nat !=< P suc

The same happens with things swapped around:

{-# DISPLAY P suc = A #-}
_ : P (suc zero)
_ = zero
-- Nat !=< A
-- should be: Nat !=< P (suc zero)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4