Question: How to define new type in package

Hello, I would like to define new type in my package but I don't know how. What should I change in followng code to make it work? Thank you. Karel Srot restart: march('create', ".", 3); MyModule := module() option package; export p, `type/FS`; `type/FS`:=proc(t); # define new type if t=`a` then RETURN(true); else RETURN(false); end if; end: p:=proc(S::FS) local coeff, t; print(1); end proc: end module; savelibname := ".": savelib('MyModule'); restart: libname:=libname, `.`: with(MyModule); type(a, FS);
Please Wait...