Comments.

beta
Philippe Pittoli 2023-07-25 15:54:17 +02:00
parent 26b1c59937
commit 729eedf475
1 changed files with 3 additions and 5 deletions

View File

@ -23,11 +23,9 @@ import Parsing.String (char, string, eof)
-- |
-- | Accepting an optional '.' at the end of the subdomain doesn't conform
-- | to the (prefered) syntax of a domain as described in RFC 1035.
-- | However, this last '.' character should be acceptable in most applications,
-- | specially when an "absolute" name (example.com.) has to be differenciated from a "relative" name (www).
-- |
-- | PS: both "absolute" and "relative" are from filesystem's terminology,
-- | but I assume the reader to be more familiar with file-systems than DNS terminology.
-- | However, this last '.' character should be acceptable in most applications.
-- | In some cases, a fully qualified domain name (FQDN) such as `example.com.`
-- | has to be differenciated from a "relative" name (www).
domain :: Parser String String
domain = PC.try (string " ") <|> sub_eof