-
I'm trying to implement a series of ASTs that looks similar with GADT(ref: this [paper](https://icfp23.sigplan.org/details/ocaml-2023-papers/4/Modern-DSL-compiler-architecture-in-OCaml-our-experienc…
-
While trying to build any of my libraries (or any packages which depend on those libraries) which use GHC plugins, I get the following error:
```
> Error: Setup: '/build/tmp.usjCQn4s88/bin/…
-
In scalaz 7.3+ we're using this pattern to encode invariant ADTs
```scala
sealed abstract class AsyncReturn[A]
final case class Now[A](value: A) extends AsyncReturn[A]
f…
-
一个用户对象是中文为母语的开发者的编程语言以及配套开发环境, 应该有哪些特殊的功能, 才有存在的价值和维持开源的社区动力? 暂且不讨论如何实现的问题, 先搜集需求和探讨设计. 这个目标虽然是远期的, 但总要一步步实现, 希望这里能迈出第一步.
基于[早先的讨论](https://www.zhihu.com/question/55386231), 个人整理的一些如下. 视野有限, 仅作抛砖引玉…
-
### Your environment
Which OS do you use?
Arch Linux
Which version of GHC do you use and how did you install it?
9.0.2 ghcup
How is your project built (alternative: link to the project)?
c…
-
https://github.com/geniusyield/atlas/blob/0cf1d0977a4c2b1c837f4339f13c20aa7a4133b6/src/GeniusYield/Test/Privnet/Examples/Gift.hs#L406
-
## Compiler version
`3.0.0-M4-bin-SNAPSHOT`, `3.0.0-RC1`
## Minimized code
```Scala
object Test {
trait Tag[T]
// works: Int = Z = Y = T
def func1[Z >: Int : Z : Y : Int : Z T = …
-
## Compiler version
3.1.3
## Minimized code
```Scala
enum PingMessage[Response]:
case Ping(from: String) extends PingMessage[String]
val pongBehavior: [O] => (Unit, PingMessage[O]) => …
-
I have a case with exhaustivity checking complaining that an exhaustive match is not exhaustive. Amusingly, if I add a placeholder (`case _ => ...`) the compiler then complains that the placeholder is…
-
_(Discovered while investigating #106.)_
If you run this program:
```hs
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-#…