add syntax datatype

datatype Week = Mon | Tue | Wed | Thi | Fri | Sat | Sun

convert to

sealed abstract class Week
case class Mon()
case class Tue()
case class Wed()
case class Thi()
case class Fri()
case class Sat()
case scall Sun()