なぜこれが機能するのだろうか
data Person = PersonContructor {
firstName :: String,
lastName :: String,
age :: Int
} deriving (Show)
main = putStrLn $ show $ map (PersonContructor "firstName1" "lastName1") [666, 999]
そして、これはしません
data Person = PersonContructor {
firstName :: String,
lastName :: String,
age :: Int
} deriving (Show)
main = putStrLn $ show $ map (PersonContructor {firstName="firstName1", lastName="lastName1"}) [666, 999]
どうすれば修正できますか?