views:

90

answers:

1

How do I create an instance of a "labelled fields data type"?

data InputData = InputData { events :: [Event], newResources :: [Resource] }
myInputData :: InputData
myInputData = ???
+2  A: 
where myInputData = InputData {events=[], newResources=[]}