You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specified type does not refine Haskell type for `Data.Foldable.foldl` (Checked)
The Liquid type
.
forall t ->
Data.Foldable.Foldable t
-> forall b a -> (t -> t -> t) -> t -> t t -> t
.
is inconsistent with the Haskell type
.
forall (t :: GHC.Types.Type -> GHC.Types.Type) b a.
Data.Foldable.Foldable t =>
(b -> a -> b) -> b -> t a -> b
.
defined at UnhelpfulNoLocationInfo
.
|
3 | {-@ assume foldl :: (b -> a -> b) -> b -> t a -> b @-}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That is,
The type class instance Data.Foldable.Foldable t gets placed before the universals forall b a and
The type variables a and b get incorrectly substituted by t.
This also happens when writing the existentials and type classes explicitly:
When trying to
assume
the type of a Haskell function involving type classes:Liquid Haskell gives the following error:
That is,
Data.Foldable.Foldable t
gets placed before the universalsforall b a
anda
andb
get incorrectly substituted byt
.This also happens when writing the existentials and type classes explicitly:
The text was updated successfully, but these errors were encountered: