first_forward_pass =
L.scanl' (L.foldl' fill_knapsack_without_parent_pointers)
* Ambiguous type variable `t0' arising from a use of L.foldl'
prevents the constraint `(Foldable t0)' from being solved.
The compiler says that it wants me to specify the types to L.fold'
which is annoying. I can't be bothered to specify the type for every little thing while I am writing stuff, so can I turn on some extension so it defers solving for the typeclass constraint until it actually needs it?
Edit: I see now that once I use it with a list it specializes the second argument to a [[(Int,Int)]] even without type annotations. I thought it would end up being a generic [t (Int, Int)].