-
If you defined a data type to wrap a value
```
data Wrap a = Wrap {unwrap :: a }
{-@ data Wrap a = Wrap {unwrap :: a } @-}
```
Liquid Haskell will automatically turn `unwrap` into a measure.
Th…
-
I have a simple library testing out the `wasi:http` types. When I try to add an `additional_derives: [serde::Serialize, serde::Deserialize]` to the `wit_bindgen::generate!` macro definition I get the …
-
Newtypes currently do not work with any of the typeclasses which means you can't even check if two things are the same.
```
newtype T = { val : Integer }
```
```
Main> T { val = 1 } == T { val = …
qsctr updated
7 months ago
-
Currently, being a type alias, the internal platform type of ThreadId is exposed and can be set within a safe code context. This allows triggering undefined behavior in this library without unsafe cod…
-
One of my generators failed at runtime and it seems to depends on the order of the involved generators.
```scala
import zio.ZIO
import zio.test.*
import zio.test.magnolia.DeriveGen
import neoty…
-
I would like to filter results to only return
- type aliases
- newtypes
- data declarations
- type declarations
- type families
- modules
- ...
-
This is more of an aspirational issue as I'm not sure if this is actually fixable. At issue is the fact that `Newtype[A]` will fail at runtime if it interacts with `ZEnvironment#prune`.
Consider:
…
-
Allowing newtype wrapped columns would be especially useful for (foreign) keys.
For example, it's easy to mistype and join on the wrong fields if they're all ints, but if we add a newtype, then thi…
-
`Any`, `All`, `First`, `Last`, `Sum`, and `Product` are all useful type/constructor names and it's very rare that I would use the newtype instead of just calling the function of the same name.
The …
-
#3039 makes `hashes` an unconditional dependency of `primitives`, before release we should consider using an inner array for the new types created with `hash_newtype` and making `hashes` optional.