А скинь полный лог ошибки
• Ambiguous type variable ‘a0’ arising from a use of ‘method’
prevents the constraint ‘(Param a0)’ from being solved.
Probable fix: use a type annotation to specify what ‘a0’ should be.
These potential instance exist:
instance Param GetMeParam -- Defined at app/Main.hs:41:10
• In the second argument of ‘(<$>)’, namely
‘method "getMe" (bot & token) []’
In the expression: eitherDecode <$> method "getMe" (bot & token) []
In an equation for ‘getMeEither’:
getMeEither bot = eitherDecode <$> method "getMe" (bot & token) []
|
23 | getMeEither bot = eitherDecode <$> method "getMe" (bot&token) []
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^