Let's say I have the following sort of type definitions:
type alias EntityBase =
{ id: Int
, name : String
}
-- Derived types
type alias PersonSpecfic entityBase =
{ entityBase
| age: Int
, address : String
}
type alias Person = PersonSpecfic EntityBase
Are there any constructor functions for the types Person / PersonSpecfic
in the current version of Elm (0.16)?
(the compiler says "Cannot find variable ``PersonSpecfic``"
)
This is relevant to be able to create Json decoders for the type hierarchy.