-
## Minimized code
```Scala
trait UntypedLambda[E] {
def lam(f: E => E): E
def app(e1: E, e2: E): E
}
def lam[E](f: E => E)(using ul: UntypedLambda[E]): E = ul.lam(f)
def app[E](e1: E, e…
-
## Compiler version
I've reproduced this using the latest scalac version available at the time:
```
cs launch scala3-repl:3.0.2-RC1-bin-20210708-7627583-NIGHTLY
```
## Minimized code
```…
-
## Compiler version
3.0.0-RC3
## Minimized code
```Scala
trait MyTC[F[_]]
// Polymorphic Function Type with context
val fun: [F[_], A] => MyTC[F] ?=> () => F[A] = () => { // what is corr…
scf37 updated
3 years ago
-
Consider the following signature:
```haskell
quickSpec $ signature
[ con "zero" $ liftC @(Num A) $ zero @A
, con "0" $ liftC @(Num A) $ (0 :: A)
, instanceOf @(Num Int)
, withPrintStyl…
-
I have a controller with the following code:
```rb
render json: MenuSerializer.new(menus, include: %i[items.sellable.photos])
```
The serializers look like this:
```rb
class MenuSerializer…
-
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
I am using polymorphic JSON which works when returning the class but not when returning `Ok(d…
-
The compiler complains if a polymorphic function recursively calls the same function with a different type parameter.
## SSCCE
```elm
silly : List a -> String
silly xs =
case xs of
…
-
#### Bug Report Checklist
- [x ] Have you provided a full/minimal spec to reproduce the issue?
- [ x] Have you validated the input using an OpenAPI validator ([example](https://apidevtools.org/swa…
-
MLton exposes the type equality of monomorphic and polymorphic `Char.char` vectors:
``` SML
fun 'a id (x: 'a) : 'a = x
val _ : CharVector.vector -> Char.char Vector.vector = id
val _ : CharVectorSli…
-
See [this discussion on twitter](https://twitter.com/plt_amy/status/1534242510700175360) that points to [this code on 1Lab](https://1lab.dev/Cat.Functor.Adjoint.Hom.html) that appears to do just that.