Skip to content

Commit

Permalink
More progress on generalizing generalizations
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Feb 3, 2025
1 parent ed5ac7c commit b31e23e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/url/nettlesome.Url.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ object Url:
def caseSensitivity: Case = Case.Sensitive

given HttpUrl is Abstractable across Urls into Text = _.show
given (Tactic[UrlError], Tactic[HostnameError]) => HttpUrl is SpecificUrl = Url.parse(_)

given (Tactic[UrlError], Tactic[HostnameError])
=> HttpUrl is Concretizable across Urls from Text =
Url.parse(_)

given showable: [SchemeType <: Label] => Url[SchemeType] is Showable = url =>
val auth = url.authority.lay(t"")(t"//"+_.show)
Expand Down

0 comments on commit b31e23e

Please sign in to comment.