HaskellNet 库中的一个示例:
data MailboxInfo = MboxInfo { _mailbox :: MailboxName
, _exists :: Integer
, _recent :: Integer
, _flags :: [Flag]
, _permanentFlags :: [Flag]
, _isWritable :: Bool
, _isFlagWritable :: Bool
, _uidNext :: UID
, _uidValidity :: UID
}
deriving (Show, Eq)
字段名称中的下划线是否意味着什么,如果不是编译器,那么至少根据 Haskell 约定?