创建标记字段数据类型的实例

时间:2010-05-30 09:26:33

标签: haskell types label field

如何创建“标记字段数据类型”的实例?

data InputData = InputData { events :: [Event], newResources :: [Resource] }
myInputData :: InputData
myInputData = ???

1 个答案:

答案 0 :(得分:2)

where myInputData = InputData {events=[], newResources=[]}