-
## Compiler version
3.5.0
## Minimized code
Consider the following program:
```scala
trait Iter[Self]:
type Elem
extension (self: Self) def next: Option[(Elem, Self)]
given Iter[…
-
The following code produces a `ClassCastException` at runtime:
```scala
object Test extends App {
sealed trait Node[+A]
case class L[C,D](f: C => D) extends Node[C => D]
def test[A,B](n:…
-
[Google Issue #1580 : http://code.google.com/haxe/issues/detail?id=1580]
by si...@haxe.org, at 2013-02-28T19:57:16.000Z
http://pastebin.com/ptCFGLtE
Although I have no idea what I'm doing, I think t…
-
Note: the issue was created automatically with bugzilla2github tool
Original bug ID: BZ#5515
From: @tchajed
Reported version: trunk
CC: @JasonGross, @psteckler
-
Currently only the first constructor name is handled: https://github.com/google/haskell-indexer/blob/master/haskell-indexer-backend-ghc/src/Language/Haskell/Indexer/Backend/Ghc.hs#L327
-
Consider that matching on `Foo` brings some constraints into scope which are required by `baz`
```haskell
x = [ () | Foo
-
`ghc` accepts both
```haskell
data X where
X :: Int -> X
```
and
```haskell
newtype X where
X :: Int -> X
```
but `hlint` doesn't suggest using a `newtype` in this case.
If it is de…
-
Given
``` Haskell
{-# LANGUAGE GADTs, KindSignatures, RankNTypes #-}
data Expr :: * -> * where
Num :: Int -> Expr Int
Bool :: Bool -> Expr Bool
Add :: Expr Int -> Expr Int -> Expr Int
Cond…
edsko updated
10 years ago
-
Verifying the following program fails in the totality check.
```
{-# LANGUAGE GADTs #-}
{-@ LIQUID "--exact-data-cons" @-}
{-@ LIQUID "--ple" @-}
{-@
data T a where
T :: Int -> T Int
T…
-
Minimal example:
```haskell
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
data Nat = Z | S Nat
data Op a b where
Pop :: Op ('S n) n
{-@
data Op a b where
Pop :: Op ('S n) …