type alias Model = Array
gives error: The Array
type needs 1 argument, but I see 0 instead
Any help would be appreciated.
type alias Model = Array
gives error: The Array
type needs 1 argument, but I see 0 instead
Any help would be appreciated.
You need to say what the array should contain. For example:
type alias Model = Array Int
Or if you need different things in your array in different places:
type alias Model a = Array a
Making aliases for types other than records isn’t the best approach many times. I’d just say Array
instead of Model
where needed.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.