-
Just like in `monad-logger`:
https://hackage.haskell.org/package/monad-logger-0.3.25.1/docs/Control-Monad-Logger.html#t:NoLoggingT
-
I've observed that a very valuable thing to do is to have a writer monad where (equationally) `undefined :: Writer a b = Writer (undefined :: a) (undefined :: b)`, this can usefully convert infinite i…
-
![download](https://user-images.githubusercontent.com/15976131/27630458-2b814b72-5c28-11e7-90da-1333674dd983.png)
-
How does one provide for using newtypes as option record types?
Currently the failure mentions missing `ParseFields` instance, but when one tries to provide a hand-written one, along the lines of the…
-
[`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…
-
Hi,
```scala
object KeyValue extends Newtype[(String, String)]:
override inline def assertion = //I want to validate that first member is not empty, how do I do this ?
```
We should have…
-
The serde support of this crate is just plain awesome. I use `#[serde(with = "hex::serde")]` all the time. However, I just ran into the situation where I want a `Vec` to be encoded as a list of hex st…
-
http://danielkeep.github.io/rust-custom-derive/doc/newtype_derive
https://github.com/DanielKeep/rust-custom-derive
-
`VecMap` perfectly fits my current use case, except that my integer keys are newtype-wrapped for safety reasons. It'd be really cool if any types that can convert from and into `usize` could be used. …
-
Have you thought about implementing something like this:
```rust
use std::convert::From;
use std::fmt;
use std::ops::Div;
pub struct Meter(f64);
pub struct Second(f64);
pub struct MeterPe…