haddock documentation for Types.Url and Types.newUrl

This commit is contained in:
Jonathan Lamothe 2021-09-22 12:19:29 -04:00
parent 4186eba7f1
commit 258242ccfc

View File

@ -25,14 +25,21 @@ module Types (
newUrl
) where
-- | Defines the basic parts of a URL
data Url = Url
{ protocol :: String
-- ^ the protocol, e.g.: HTTPS
, host :: String
-- ^ the hostname (and optional port)
, path :: [String]
-- ^ the path as a list of nested directories
, params :: [(String, Maybe String)]
-- ^ the parameters and their optional values
, anchor :: Maybe String
-- ^ the anchor text
} deriving (Eq, Show)
-- | default value for a 'Url'
newUrl :: Url
newUrl = Url "" "" [] [] Nothing