-
I had a thought that this would be useful for some problem I'm trying to solve, but I'm not sure if it's feasible or useful for others. I'm opening this issue to attract commentary and other use-cases…
-
When haddock generates docs for a module with `StrictData`/`Strict` extensions, the datatype fields in the docs do not have regular `!` marks, but they are strict under the hood. Is it possible to det…
-
## Minimized code
```Scala
case class Key[T]()(val value: T)
def foo[K[_], A, B](k0: K[A], k1: K[B]): Option[k1.type] = k0 match {
case k: k1.type => Some(k)
case _ => None
}
@main de…
-
By default, type variables in GHC are given kind `*`, i.e., the kind of types of _lifted_ values. Consequently, the polymorphic constructors and definitions in this project are restricted to lifted (b…
conal updated
10 years ago
-
I mentioned this potential feature in [this issue](https://github.com/ceylon/ceylon-compiler/issues/1453) under the name `DataKinds`; the standard paper describing it is [here](http://research.microso…
-
I had the idea that we could use GHC rewrite rules to chain matrix muliplications. For example, `m1 m2 m3 ... mn` could be rewritten as `mconcat [m1,m2,...,mn]`. The benefit of this would be that …
-
This example gives me an error "foreign key mismatch" at runtime. Have I misinterpreted how to use composite keys or is this a thing one shouldn't do at all?
```haskell
#!/usr/bin/env stack
-- …
-
The more I look into it, the more I have problems managing the distinction between polymorphic objects and those that are not.
In particular, I am starting to wonder if types such as `mutual_induct…
-
Prelude> :r
[1 of 1] Compiling Singletons ( singletons.hs, interpreted )
**\* Exception: ASSERT failed! file compiler/typecheck/TcCanonical.hs, line 1093
```
{-# LANGUAGE GADTs, PolyKinds, Type…
-
We’d like to be able to aggressively optimize languages by applying certain equalities to reduce the term tree. However, you can’t in general do optimizations (or more broadly, analyses) of languages …