From REPL how does not ensures that the a list is indeed interpret as a vector instead?
For example if I type:
:t Vect
I get Vect : Nat -> Type -> Type
which makes absolute sense, if I type
:t Vect 2
I get Vect : Type -> Type
which makes again absolute sense. But I try now:
:t Vect 2 [1,2]
and get an error
Can't disambiguate since no name has a suitable type:
Prelude.List.::, Prelude.Stream.::, Data.Vect.::
I was hoping to see instead [1,2] : Vect 2 Int
instead. What I am doing wrong? I also have issues when using the function the
when trying to interpret a list as vector.
Any suggestion?