Module

URL.Validator

Package
purescript-url-validator
Repository
bbarker/purescript-url-validator

#URL Source

newtype URL

Instances

#parseURL Source

parseURL :: String -> Either String URL

Returns a URL if it is determiend the input string is a URL. Otherwise, returns an error message string.

#parsePublicURL Source

parsePublicURL :: String -> Either String URL

Returns a URL if it is determiend the input string is a URL and that the URL contains no username or password. Otherwise, returns an error message string.

#urlToString Source

#validateURL Source

validateURL :: String -> Boolean

Returns true if a valid URL is passed in, false otherwise.

#validatePublicURL Source

validatePublicURL :: String -> Boolean

Returns true if a valid URL is passed in, false otherwise. Also returns false if the URL contains a username or password.

Modules
URL.Validator