haddock documentation for Types.Url and Types.newUrl
This commit is contained in:
parent
4186eba7f1
commit
258242ccfc
|
@ -25,14 +25,21 @@ module Types (
|
||||||
newUrl
|
newUrl
|
||||||
) where
|
) where
|
||||||
|
|
||||||
|
-- | Defines the basic parts of a URL
|
||||||
data Url = Url
|
data Url = Url
|
||||||
{ protocol :: String
|
{ protocol :: String
|
||||||
|
-- ^ the protocol, e.g.: HTTPS
|
||||||
, host :: String
|
, host :: String
|
||||||
|
-- ^ the hostname (and optional port)
|
||||||
, path :: [String]
|
, path :: [String]
|
||||||
|
-- ^ the path as a list of nested directories
|
||||||
, params :: [(String, Maybe String)]
|
, params :: [(String, Maybe String)]
|
||||||
|
-- ^ the parameters and their optional values
|
||||||
, anchor :: Maybe String
|
, anchor :: Maybe String
|
||||||
|
-- ^ the anchor text
|
||||||
} deriving (Eq, Show)
|
} deriving (Eq, Show)
|
||||||
|
|
||||||
|
-- | default value for a 'Url'
|
||||||
newUrl :: Url
|
newUrl :: Url
|
||||||
newUrl = Url "" "" [] [] Nothing
|
newUrl = Url "" "" [] [] Nothing
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user