-
**Describe the enhancement**
Currently, interacting with `Tags` on an `Event` is done through the use of a `Vec`. This works well for the most part. However, getting the tags from an `Event` righ…
-
In general `Hash` is way to overloaded in the codebase, `CandidateHash` was a glorious exception, being a `newtype` around `Hash`, but due to [this](https://github.com/paritytech/polkadot-sdk/blob/7ec…
-
Currently, if we want to embed a specialization of some type in a LF theory, both `type` and `newtype` definitions get unrolled, breaking the abstraction barrier. E.g., defining bags as follows:
``…
-
Hello,
I just discovered this library and it seems to correspond to what I want for use in my project, however I am currently using the newtype pattern which I wonder if it can be used with this li…
-
To make hashing newtypes more convenient we might want to have a private `engine` method on them. And to make it even more convenient and type safe we want to have a `HashEngine` newtype with `finaliz…
-
I'd like to be able to write code like;
```python
from typing import *
SortedList = NewType('SortedList', List)
A = TypeVar('A')
def my_sorted(items: List[A]) -> SortedList[A]:
...
```
…
-
The usage of `Data.Lens._Newtype` includes `_Newtype` in the output, but it compiles incorrectly into:
```lua
M.MyModule__Newtype = M.Data_Profunctor_dimap(dictProfunctor)(M.Safe_Coerce_coerce())
`…
-
There are simply no entry for that in AST:
```haskell
Prelude Language.Haskell.TH> [d| newtype {-# CTYPE "int" #-} Bar = Bar Int |] >>= print
[NewtypeD [] Bar_0 [] Nothing (NormalC Bar_1 [(Bang N…
-
[`typing.NewType`](https://mypy.readthedocs.io/en/stable/more_types.html#newtypes) is a cheap way to create an alias type for type checking only (at runtime it is the underlying type). I was hoping to…
-
Serde does not allow to convey any extra metadata during serialization. Using special new type structs, it could be possible to work around it. Newtype structs can be serialized by an extra call to [`…