-
-
I have some code with a lot of newtypes, where the inner types have implementations of `FromSql` and `ToSql`. It would be nice to be able to `#[derive(ToSql, FromSql)]` on these types.
Obviously th…
-
-
Cryptol `newtypes` should be mapped to `struct`s
-
Старая задача и комментарии: https://github.com/kgv/rust_book_ru/issues/258
-
`SqlPersistT` is currently:
```haskell
type SqlPersistT = ReaderT SqlBackend
```
It will become:
```haskell
newtype SqlPersistT m a = SqlPersistT
{ unsafeRunSqlPersistT :: ReaderT SqlBa…
-
https://pursuit.purescript.org/packages/purescript-newtype/2.0.0/docs/Data.Newtype
-
There's still a bunch of places where general-purpose types (esp. numerics) are used. `BlockHeader` has several of them for instance, each should be a newtype. We can probably provide interesting meth…
-
garyb updated
11 years ago
-
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 [`…
chmp updated
2 months ago