Hi,

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 .

Tom

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)

_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to