A RetroSearch Logo

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

Search Query:

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

__IMPOSSIBLE__, called at src/full/Agda/Compiler/JS/Compiler.hs:596:45 · Issue #7588 · agda/agda · GitHub

This Agda code crashes the JS backend:

data Cell : Set where
  [-] [o] [x] : Cell

data Board : Set where
  mk-Board : Cell  Cell  Board

winner : Board  Cell
winner = λ where
  (mk-Board [x] [x])  [x]
  (mk-Board  _  [x])  [x]
  (mk-Board  _   _ )  [-]

step : Board  Board
step b with winner b  
... | [-] = b
... |  _  = mk-Board [-] [-]

Here is a log:

/tmp/tmp.4DeC6lEc31$ agda --js bugreport.agda
Checking bugreport (/tmp/tmp.4DeC6lEc31/bugreport.agda).
Compiling Agda.Primitive in /nix/store/8pqr8xp07v8xd4kj99wpkziq5zd2famd-Agda-2.8.0-data/share/ghc-9.6.5/x86_64-linux-ghc-9.6.5/Agda-2.8.0/lib/prim/_build/2.8.0/agda/Agda/Primitive.agdai to /tmp/tmp.4DeC6lEc31/./jAgda.Agda.Primitive.js
Compiling bugreport in /tmp/tmp.4DeC6lEc31/bugreport.agdai to /tmp/tmp.4DeC6lEc31/./jAgda.bugreport.js
An internal error has occurred. Please report this as a bug.
Location of the error: __IMPOSSIBLE__, called at src/full/Agda/Compiler/JS/Compiler.hs:588:45 in Agda-2.8.0-JMDOmoIw0FQAlAv1YIAPME:Agda.Compiler.JS.Compiler

I get an __IMPOSSIBLE__ error on these Agda revisions:

The example compiles without errors on these Agda revisions:

The error disappears after any of these edits:


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