Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/Time/DDay.gc
module Time where import qualified Ix data Day = Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday deriving (Eq, Ord, Enum, Bounded, Ix.Ix, Read, Show) %dis day d = <fromEnum/toEnum> (int d)