2020-12-13 20:09:23 +01:00
|
|
|
module Mock.Blog.URL (
|
|
|
|
noCards
|
|
|
|
, simple
|
2021-03-28 23:38:53 +02:00
|
|
|
, subPath
|
2020-12-13 20:09:23 +01:00
|
|
|
) where
|
|
|
|
|
2021-04-04 17:33:31 +02:00
|
|
|
import Blog.URL (AbsoluteURL(..), URLs(..))
|
|
|
|
import Network.URL (Host(..), Protocol(..))
|
2020-12-13 20:09:23 +01:00
|
|
|
|
2021-03-13 22:45:45 +01:00
|
|
|
simple :: URLs
|
|
|
|
simple = URLs {
|
2021-04-04 17:33:31 +02:00
|
|
|
cards = Just (AbsoluteURL {
|
|
|
|
Blog.URL.host = Host (HTTP True) "test.net" Nothing
|
|
|
|
, urlPath = ""
|
|
|
|
, urlParams = []
|
2021-03-28 23:38:53 +02:00
|
|
|
})
|
|
|
|
, comments = Nothing
|
|
|
|
, rss = Nothing
|
|
|
|
}
|
|
|
|
|
|
|
|
subPath :: URLs
|
|
|
|
subPath = URLs {
|
2021-04-04 17:33:31 +02:00
|
|
|
cards = Just (AbsoluteURL {
|
|
|
|
Blog.URL.host = Host (HTTP True) "test.net" Nothing
|
|
|
|
, urlPath = "subPath"
|
|
|
|
, urlParams = []
|
2021-03-28 23:38:53 +02:00
|
|
|
})
|
2020-12-13 20:09:23 +01:00
|
|
|
, comments = Nothing
|
|
|
|
, rss = Nothing
|
|
|
|
}
|
|
|
|
|
2021-03-13 22:45:45 +01:00
|
|
|
noCards :: URLs
|
2020-12-13 20:09:23 +01:00
|
|
|
noCards = simple {cards = Nothing}
|