Safe HaskellSafe

Year

Description

A program for printing a calendar year

Synopsis

Documentation

rjustify :: Int -> String -> String Source #

'rjustify n xs' right-justifies its String argument xs inside a box of width n.

months :: [String] Source #

The names of all months in a year.

groupsOfSize :: Int -> [a] -> [[a]] Source #

'groupsOfSize n xs' splits the list xs into segments of length n (the last one may be shorter).

daysOfMonth :: Month -> Year -> [Picture] Source #

A list of pictures of days of a given month in a given year.

month :: Month -> Year -> Picture Source #

A picture containing all days of a given month in a given year.

monthPic :: Year -> Month -> Picture Source #

A picture of all days of a given month in a given year with weekday header.

yearPic :: Year -> Int -> Picture Source #

A picture for all 12 months of a given year.

printYear :: Int -> Int -> IO () Source #

Print a given year with month distributed over a given number of columns.

main :: IO () Source #

The main entry point of the program.