Skip to content

Instantly share code, notes, and snippets.

@cemerick
Created February 2, 2019 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemerick/4208e2e5d748c820b21c053c5eec007a to your computer and use it in GitHub Desktop.
Save cemerick/4208e2e5d748c820b21c053c5eec007a to your computer and use it in GitHub Desktop.
Error: This expression has type
[> `Assoc of
(string * ([< `Assoc of (string * Yojson.Basic.t) list ] as 'a))
list
| `Int of int
| `List of Yojson.Basic.t Containers.List.t
| `String of string ]
but an expression was expected of type
Yojson.Basic.t =
[ `Assoc of (string * Yojson.Basic.t) list
| `Bool of bool
| `Float of float
| `Int of int
| `List of Yojson.Basic.t Containers.List.t
| `Null
| `String of string ]
Type [< `Assoc of (string * Yojson.Basic.t) list ] as 'a
is not compatible with type
Yojson.Basic.t =
[ `Assoc of (string * Yojson.Basic.t) list
| `Bool of bool
| `Float of float
| `Int of int
| `List of Yojson.Basic.t Containers.List.t
| `Null
| `String of string ]
The first variant type does not allow tag(s)
`Bool, `Float, `Int, `List, `Null, `String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment