Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Int constraint in Shape class for type inference
This allows the compiler to infer that this instance is used, before knowing the type of 'i'. The constraint will then still asure that i is an Int. With this change, type inferencing will now correctly infer the shape of use $ fromList (Z :. 10) [0 :: Int ..]
- Loading branch information