Created
February 2, 2019 20:47
-
-
Save cemerick/4208e2e5d748c820b21c053c5eec007a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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