Skip to content

Instantly share code, notes, and snippets.

@maiermic
Created April 12, 2016 07:52
Show Gist options
  • Select an option

  • Save maiermic/cb41ca295960aebe0cb3cdab9cec565d to your computer and use it in GitHub Desktop.

Select an option

Save maiermic/cb41ca295960aebe0cb3cdab9cec565d to your computer and use it in GitHub Desktop.
When checking argument f to function Prelude.Basics.flip:
Type mismatch between
Type -> Type -> Type (Type of Pair)
and
a -> b1 -> b -> c -> Type (Expected type)
Specifically:
Type mismatch between
Type
and
b -> c -> Type
||| Combine three equal-length `HVect`s elementwise into a vector of tuples
zip3 : HVect as -> HVect bs -> HVect cs -> HVect (zipWith3 (flip Pair Pair) as bs cs)
zip3 [] [] [] = []
zip3 (a::as) (b::bs) (c::cs) = (a, b, c) :: zip3 as bs cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment