Open
Description
I have documentation that looks like this
{-| Start creating a codec for a record.
type alias Point =
{ x : Int
, y : Int
}
pointCodec : Codec Point
pointCodec =
Codec.object Point
-- Note that adding, removing, or reordering fields will prevent you from decoding any data you've previously encoded.
|> Codec.field .x Codec.signedInt
|> Codec.field .y Codec.signedInt
|> Codec.finishObject
-}
There isn't any meaningful output to test against with "-->" but I would still like to verify that this code compiles.
Edit: And in this case I just noticed that I renamed signedInt
so this is indeed invalid code. Having a way to check for this kind of stuff would be very useful!