Created
August 20, 2018 10:52
-
-
Save domenkozar/8517cc154cdf961089144f9656b694b3 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
• Could not deduce (ToJSON a0) | |
from the context: ToJSON a | |
bound by the type of the constructor ‘Remove’: | |
forall a. ToJSON a => Operation | |
at src/MixPanel/Types/EngageData.hs:20:5-35 | |
The type variable ‘a0’ is ambiguous | |
• In the ambiguity check for ‘Remove’ | |
To defer the ambiguity check to use sites, enable AllowAmbiguousTypes | |
In the definition of data constructor ‘Remove’ | |
In the data type declaration for ‘Operation’ | |
| | |
20 | Remove :: ToJSON a => Operation | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
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
data Operation where | |
Set :: ToJSON a => Operation | |
SetOnce :: ToJSON a => Operation | |
Add :: ToJSON a => Operation | |
Append :: ToJSON a => Operation | |
Union :: ToJSON a => Operation | |
Remove :: ToJSON a => Operation | |
Unset :: ToJSON [a] => Operation | |
Delete :: Operation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment