-
### Dafny version
4.8.1
### Code to produce this issue
```dafny
module arith {
function abs(x:int):nat { if x < 0 then -x else x }
function max(x:int,y:int):int { if x < y then y else x }
…
-
Hello!
The following code fails with `deserialization not working: Syntax("invalid type: newtype struct, expected any valid JSON value")` on the `rmp_serde:1.1.1`
```
#[test]
fn test() {
le…
-
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 …
-
I just encountered an issue when deserializing a newtype struct. You usually use a newtype struct (e.g. `struct Foo(Bar)`) to put something inside a tag, however `serde_xml_rs` seems to want to treat …
-
The following snippet will currently throw a runtime exception since the string cannot be parsed to a `UUID`:
```scala
import java.util.UUID
type Id = Id.Type
object Id extends Newtype[UUID]
…
-
These would function the same as other set instances or n-tupled bool instances but efficiently via Bits and FiniteBits.
```Haskell
newtype BitSet a = BitSet a
deriving (Eq, Bits, FiniteBits)
…
-
We've been using `u64` to represent a process ID everywhere, but probably should have a new type for this.
-
For my latest project I wanted to test out `SmallUnliftedArray`.
I wanted to use it with arbitrary `a`'s however (rather than only those for which a user provides a `PrimUnlifted` instance),
so I…
-
Currently, there is no way to get a `TypeTag` for a newtype:
```scala
@newtype case class WidgetId(toInt: Int)
val widgetId = WidgetId(5)
import scala.reflect.runtime.universe._
val tt = …
LMnet updated
4 years ago
-
Temperatures and times present a few challenges. The `SIUnits` module deals with one of them by:
```
fromDegreeCelsiusAbsolute :: Fractional a => a -> ThermodynamicTemperature a
fromDegreeCelsiusAbso…