Skip to content

Commit

Permalink
Rename Url -> ItemUrl to prevent confusion with elm-url
Browse files Browse the repository at this point in the history
  • Loading branch information
rl-king committed Oct 21, 2019
1 parent 489e4fe commit 31b6f26
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ viewListItem index item =
]


listItemUrl : Int -> Url -> String -> Html Msg
listItemUrl : Int -> ItemUrl -> String -> Html Msg
listItemUrl id url title =
case url of
Internal ->
Expand Down Expand Up @@ -297,7 +297,7 @@ viewItem item =
]


itemUrl : Url -> String -> Html Msg
itemUrl : ItemUrl -> String -> Html Msg
itemUrl url title =
case url of
External path ->
Expand Down Expand Up @@ -555,7 +555,7 @@ type alias Item =
, points : Int
, user : String
, timeAgo : String
, url : Url
, url : ItemUrl
, domain : String
, commentsCount : Int
, comments : Comments
Expand All @@ -572,7 +572,7 @@ type alias User =
}


type Url
type ItemUrl
= External String
| Internal
| None
Expand Down Expand Up @@ -604,7 +604,7 @@ decodeItem =
|> Pipeline.required "type" Decode.string


decodeUrl : Decode.Decoder Url
decodeUrl : Decode.Decoder ItemUrl
decodeUrl =
let
toLink url =
Expand Down

0 comments on commit 31b6f26

Please sign in to comment.