标签: haskell types label field
如何创建“标记字段数据类型”的实例?
data InputData = InputData { events :: [Event], newResources :: [Resource] } myInputData :: InputData myInputData = ???
答案 0 :(得分:2)
where myInputData = InputData {events=[], newResources=[]}