A RetroSearch Logo

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

Search Query:

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

Case-split on a datatype defined in a parametrised module produces needlessly-prefixed patterns · Issue #3209 · agda/agda · GitHub

When case-splitting on x in B.agda, we get the pattern (;A.A⁺.a x) which is a
parse error rather the completely valid (a x).

A.agda:

open import Level

module A {l : Level} (A : Set l) where

data A⁺ : Set l where a : A  A⁺

B.agda:

module B where

open import Agda.Builtin.Nat
open import A Nat

swap : A⁺  A⁺
swap x = {!!}

Note that if we inline A.agda as a parametrised module defined in B.agda then
everything is fine!


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