-
We can have something like
```haskell
class Protocol ps where
-- | The messages for this protocol. It is expected to be a GADT that is
-- indexed by the @from@ and @to@ protocol states. Th…
-
## Compiler version
`3.0.0`
## Minimized code
```Scala
object test {
def foo[A, B](m: B) = {
m match {
case _: A =>
m match {
case _: B => // crash with -…
-
## Compiler version
3.0.0-RC3
## Minimized code
```Scala
enum Func[-A, +B] {
case Double extends Func[Int, Int]
case ToString extends Func[Float, String]
def run: A => B = this ma…
-
## Compiler version
`3.2.0-RC2` (`main` branch)
## Minimized code
```Scala
trait Foo
case class Bar[A, T
val xs0: *:[a, T] = ???
val t0: a = xs0.head[(a *: T)]
va…
-
### Your environment
Which OS do you use?
macOS 12.5.1 on aarch64
Which version of GHC do you use and how did you install it?
ghc-9.2.4 from nix
How is your project built (alternati…
-
Hi,
I can't seem to replicate the replicate :-) function from the singletons paper (page 5).
```Haskell
$(singletons [d|
data Nat = Zero | Succ Nat
|])
type Vec :: Nat -> Type -…
-
For context see the discussion on discourse: https://discourse.haskell.org/t/datatypecontexts-has-something-changed-since-it-was-marked-deprecated/7560/7?u=jaror
I think deprecating DatatypeContext…
-
## Compiler version
3.1.1-RC2
## Minimized code
```Scala
// using scala 3.1.1-RC2
enum Free[+F[_], A]:
case Return(a: A)
case Suspend(s: F[A])
case FlatMap[F[_], A, B](
s:…
-
## Compiler version
3.2.0-RC1
## Minimized code
```Scala
trait Tag { val data: Int }
enum EQ[A, B]:
case Refl[C]() extends EQ[C, C]
def foo[T, B
val i: Int = x.data
```
##…
-
The following code snippet:
```ocaml
module Wrapper = struct
type x = { a : int; }
(* structurally identical records *)
type y = { a : int; }
end
open Wrapper
type _ witness =
| …