Skip to content

Commit

Permalink
Add to url instance for pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-k committed Nov 20, 2023
1 parent c2fcd8e commit b2927df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mig/src/Mig/Core/Class/Url.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type family UrlOf a :: Type where
UrlOf (a, b, c, d) = (UrlOf a, UrlOf b, UrlOf c, UrlOf d)
UrlOf (a, b, c, d, e) = (UrlOf a, UrlOf b, UrlOf c, UrlOf d, UrlOf e)
UrlOf (a, b, c, d, e, f) = (UrlOf a, UrlOf b, UrlOf c, UrlOf d, UrlOf e, UrlOf f)
UrlOf (a :| b) = UrlOf a :| UrlOf b

{-| Converts server to safe url. We can use it to generate
safe URL constructors to be used in HTML templates
Expand Down

0 comments on commit b2927df

Please sign in to comment.