AV
==True
-> id
Size: a a a
AV
==True
-> id
AV
JS
ЗП
JS
non False :: Iso' (Maybe Bool) Bool
?JS
AV
AV
JS
has' g s = preview g s == Just True
filtered (has' $ key "shouldBeIncremeneted" . _Bool)
MK
isTrue
, а не has'
JS
JS
isJ g s = preview (g . _Bool) s == Just True
filtered (isJ $ key "shouldBeIncremeneted")
AA
AA
Main.hs:3:11: error:
• An instance 'Num a' is required by the use of '+', but no instance was found.
'(+)' has type '(Num a) => a -> a -> a', but its operands were not required to have the '(Num a)' constraint.
Possible fix:
add (Num a) to the constraints of
the type signature for foo:
foo :: a -> a -> a
foo :: (Num a) => a -> a -> a
• In the expression: a + b
In an equation for ‘foo’: foo a b = a + b
|
3 | foo a b = a + b
| ^^^^^
АГ
Main.hs:3:11: error:
• An instance 'Num a' is required by the use of '+', but no instance was found.
'(+)' has type '(Num a) => a -> a -> a', but its operands were not required to have the '(Num a)' constraint.
Possible fix:
add (Num a) to the constraints of
the type signature for foo:
foo :: a -> a -> a
foo :: (Num a) => a -> a -> a
• In the expression: a + b
In an equation for ‘foo’: foo a b = a + b
|
3 | foo a b = a + b
| ^^^^^