git.iko.soy/rowtype-yoga/purescript-yoga-fetch-om
on main help sign in
Remove polymorphic from exports, now internal to client
commit0a003a55b22aa1de1f0c9cdb530800f34687dbbd authorMark <mark.eibes@gmail.com> dateMon 9 Feb 2026, 17:50 (8 months ago) parent57eec00
1 file changed−10
src/Yoga/Fetch/Om.purs−10
src/Yoga/Fetch/Om.purs−10
@@ -1,7 +1,6 @@
11module Yoga.Fetch.Om
22 ( client
33 , deriveClient
4− , polymorphic
54 , class DeriveClient
65 , deriveClientImpl
76 , class DeriveClientRL
@@ -121,15 +120,6 @@ client baseUrl = polymorphic (deriveClientImpl baseUrl (Proxy :: _ { | routesRow
121120deriveClient :: forall @routesRow clientsRow polyClientsRow. DeriveClient routesRow clientsRow => String -> Record polyClientsRow
122121deriveClient baseUrl = polymorphic (deriveClientImpl baseUrl (Proxy :: _ { | routesRow }) :: Record clientsRow)
123122
124−-- | Cast a generated client to a polymorphic type signature
125−-- | This allows you to add explicit forall quantification for better documentation
126−-- |
127−-- | ```purescript
128−-- | api :: forall ctx err.
129−-- | { getUser :: { id :: Int } -> Om ctx (notFound :: ErrorMessage | err) User
130−-- | }
131−-- | api = polymorphic $ client @UserAPI "https://api.example.com"
132−-- | ```
133123polymorphic :: forall a b. a -> b
134124polymorphic = unsafeCoerce
135125