úÎ8Ñ Safe-InferredSThis function will validate ipv4 address and return True if string is valie adressFunction validates ipv6 address:This function will parse it's argument and return either  (") with info about error or (Host,  Port) tuple (). Examples:hostAndPort "localhost"Right ("localhost",Nothing)hostAndPort "[::1]:3030"Right ("::1",Just "3030")@Function will parse argument and return Maybe (Host, Maybe Port) Examples: maybeHostAndPort "192.168.10.12"Just ("192.168.10.12",Nothing)%maybeHostAndPort "192.168.10.12:7272""Just ("192.168.10.12",Just "7272")~Function will take default port and connection string and returns Just (Host, Port) for valid input and Nothing for invalid. Examples:'defaultHostAndPort "22" "my.server.com"Just ("my.server.com","22")2defaultHostAndPort "22" "my.otherserver.com:54022"#Just ("my.otherserver.com","54022").defaultHostAndPort "22" "porttobig.com:500022"Nothing default Port numberconnection stringMaybe (Host, Port)        !HostAndPort-0.1.0Network.HostAndPort isIPv4Address isIPv6Address hostAndPortmaybeHostAndPortdefaultHostAndPortbaseGHC.BaseString Data.EitherLeft Data.MaybeMaybeRightParser countMinMax intDigits limitedIntbyteNum consequence ipv4address hexShortNumport ipv6addressipv6addressWithScopehostnameisParsed isAsciiAlpha isAsciiNumisAsciiAlphaNum asciiAlphaNum connectionStr