A geometric three-dimensional vector is characterized by two ordered three-dimensional points - the beginning of the vector and the end of the vector. Each point is characterized by three numbers (x, y, z). I remember correctly, am I not mistaken? That is, to represent a three-dimensional vector, we need six numbers, and preferably two types of Point3D, each containing three numbers each.
Why in the book "Study Haskell in the name of good" the author presents the type of a vector only after three numbers? Who among us does not understand something?
data Vector a = Vector aaa deriving (Show)
Here is the link: http://learnyouahaskell.com/making-our-own-types-and-typeclasses