Hey,
I have a need to define a new type such as int,short etc. I have the class with all the base methods it must perform somewhat equivelant but different from the Integer class, Short class etc. However im not sure whether this is an interface i need to define.
Id like to declare something like :
newtype f = 1;
in the same way an int is declared, but since i only have a class it means i have to do
newtype f = new newtype(1);
Can anyone link me or anything to how this is done?