Skip to content

Variant

Compare
Choose a tag to compare
@justinwoo justinwoo released this 16 Dec 10:37
· 111 commits to master since this release

Now there is variant support in Simple-JSON.

Tl;dr

type MyTestVariant = Variant
  ( a :: String
  , b :: Int
  )
{
  "type": "b",
  "value": 123
}