Skip to content

Instantly share code, notes, and snippets.

@domenkozar
Created August 20, 2018 10:52
Show Gist options
  • Save domenkozar/8517cc154cdf961089144f9656b694b3 to your computer and use it in GitHub Desktop.
Save domenkozar/8517cc154cdf961089144f9656b694b3 to your computer and use it in GitHub Desktop.
• 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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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