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
The problem with an IsList instance is that it would have to generate either a runtime error or even worse unexpected behaviour when supplying a list of wrong length. There is some discussion in a GHC issue concerning proper vector literals. I suggested adding the possibility to constrain the allowed length for IsList instances, which would make it suitable also for this library.
class IsList l where
type Item l
type AllowedLength l (n :: Nat) :: Constraint
and am thinking about submitting this as a GHC proposal.
I think it might be possible to define an
IsList
instance for matrices.The text was updated successfully, but these errors were encountered: