Skip to content

Commit

Permalink
day seven
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnadel committed Feb 8, 2016
1 parent 4315282 commit 94c22b7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions dayseven.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
data RunnerTimesRecord = RunnerTimes String String [Float]
deriving (Show)

usain = RunnerTimes "Usain Bolt" null [9.79, 9.98, 9.77, 9.63]

event (RunnerTimes _ e _) = e

-- DATE
--date Date = Date Int Int Int -- M/D/Y
--month (Date x _ _) = x
--day (Date _ x _) = x
--year (Date _ _ x) = x

-- FAMILY TREE
type FirstName = String
type LastName = String
type Parents = [Person]
type Children = [Person]
--type Birthdate = Date

data Person = Person FirstName LastName Parents Children

firstName (Person first _ _ _ _) = first
lastName (Person _ last _ _ _) = last
fullname (Person p) = first ++ " " ++ last

0 comments on commit 94c22b7

Please sign in to comment.