|
|
|
|
|
by jdn
4877 days ago
|
|
I'm not quite sure what you've done there. You seem to be confusing type signatures with function definitions. You've also used GADT syntax, requiring -XGADTs, which isn't needed for a simple vector type. > Cons :: a -> Vector n a --> Vector (1 + n) a This makes no sense, you can't specify constants in a type signature, and you certainly can't add constants to a type variable in one. I may be the one not in the know here, if so please show me this magic. |
|