-
The proofs can in hindsight be made much more elegant.
Performance also needs to be considered, everything that can be represented as an integer
should be an integer.
Many GADTs should be made int…
-
An important part of GADT support is that pattern matching should recover / refine type information. I posted some examples here: https://gist.github.com/1369239 Here's a smaller snippet:
```
/**…
-
### 🐛 Describe the bug
```python
import torch
from torch.nn.attention.flex_attention import create_block_mask, flex_attention
torch.set_default_device("cuda")
@torch.compile(dynamic=True)
de…
-
This would probably be a great use case for GADTs.
Actions are associated to their signatures. Although it forces actions to have a consistent signature.
-
The following code is incorrectly declared Safe:
```haskell
{-# LANGUAGE GADTs, TypeFamilies #-}
module Select where
data family Foo a :: * -> *
{-@
data Foo Int b Bool> where
Bar :: Foo…
-
```hs
{-# LANGUAGE EmptyDataDecls, TypeFamilies #-}
instance Foo Bar where
data Baz Bar
```
This source file can be parsed just fine, but attempting to `exactPrint` the resulting module throw…
-
With the following code
```haskell
{-# LANGUAGE GADTs #-}
{-@ LIQUID "--reflection" @-}
module TestModule where
data Expr t where
I :: Int -> Expr Int
NIL :: Expr [t]
CONS :: Int -> …
-
In Discord, @EduardoRFS suggested an implementation of local data that avoids garbage collection. This is possible at the type level because we don't support GADTs.
Here's his exact idea:
> Anot…
-
The efficient representation of values make it difficult to write safe operations naturally, so we end up with functions like these:
```haskell
ppValue :: Schema.Column -> Logical.Value -> Either …
-
Add an `avro` module that would provide ways to encode/decode arbitrary data to/from `org.apache.avro.GenericContainer` given a schema.
This module should also provide ways to encode/decode our `Sc…