(no subject)

Tom Bevan tom@regex.com.au
25 Feb 2002 17:46:30 +1100


I've come across this sort of data constructor below many times but I'm
not really sure how to use it. Can someone please point me to the right
section in the documentation?
In particular, I want to know how to create a calendar time and how to
access the fields .


data CalendarTime = CalendarTime {
		ctYear   :: Int,
        	ctMonth  :: Month,
        	ctDay, ctHour, ctMin, ctSec  :: Int,
		ctPicosec :: Integer,
		ctWDay    :: Day,
		ctYDay       :: Int,
		ctTZName   :: String,
		ctTZ          :: Int,
		ctIsDST :: Bool
	} deriving (Eq, Ord, Read, Show)