packages feed

proxied

Make functions consume Proxy instead of undefined

view on Hackage

@proxied@ is a simple library that exports a function to convert constant functions to ones that take a @proxy@ value in the "Data.Proxied" module. This is useful for retrofiting typeclasses that have functions that return a constant value for any value of a particular type (but still need to consume some value, since one of the parameterized types must appear in a typeclass function). Often, these functions are given @undefined@ as an argument, which might be considered poor design. @Proxy@, however, does not carry any of the error-throwing risks of @undefined@, so it is much more preferable to take @Proxy@ as an argument to a constant function instead of @undefined@. Unfortunately, @Proxy@ wasn't included in @base@ until GHC 7.8, so many of @base@'s typeclasses still contain constant functions that aren't amenable to passing @Proxy@. @proxied@ addresses this issue by providing variants of those typeclass functions that take an explicit @proxy@ value. This library also contains the "Data.Proxyless" module, which works in the opposite direction. That is, one can take functions which take @Proxy@ (or @undefined@) as an argument and convert them to functions which take no arguments. This trick relies on the @-XTypeApplications@ extension, so it is only available with GHC 8.0 or later. This library also offers "Data.Proxyless.RequiredTypeArguments", a variant of "Data.Proxyless" that uses @-XRequiredTypeArguments@ to make type arguments explicit, which is only available with GHC 9.10 or later.
versionuploadeduploaderchanges
0.3.22024-04-20 11:56 UTCryanglscott+375/−5 lines, 5 filesPVP ok
0.3.12019-02-20 20:16 UTCryanglscott+32/−10 lines, 5 filesPVP: major bump suggested
0.32017-04-04 14:08 UTCryanglscott+133/−69 lines, 6 filesPVP ok
0.22016-04-16 22:58 UTCryanglscott+401/−10 lines, 5 filesPVP ok
0.1.12016-02-18 23:38 UTCryanglscott+8/−5 lines, 3 filesdep ~generic-derivingPVP ok
0.12016-02-18 04:10 UTCryanglscott+434/−0 lines, 6 filesdep +basedep +generic-derivingdep +taggedsetup-changed

Dependencies of proxied-0.3.2

base >=4.3 && <5 4.22.0.0 → 4.22.1.0
2026-12-01 12:38 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

generic-deriving >=1.10.1 && <2 1.14.6 → 1.14.7
2026-01-03 15:19 UTC1.14.7+10/−7 lines, 2 filesdep −ghc-primdep ~template-haskellPVP: major bump suggested
2024-12-05 12:04 UTC1.14.6+274/−6246 lines, 28 filesdep ~basedep ~containersdep ~template-haskellPVP: major bump suggested
2023-08-06 15:21 UTC1.14.5+13574/−13263 lines, 35 filesdep ~basedep ~containersdep ~template-haskellsetup-changedPVP ok
2023-04-30 20:38 UTC1.14.4+13263/−13215 lines, 35 filessetup-changedPVP ok
2023-02-27 11:47 UTC1.14.3+36/−13 lines, 5 filesdep ~template-haskelldep ~th-abstractionPVP: major bump suggested

showing 5 of 46 versions

tagged >=0.4.4 && <1 0.8.11 → 0.9
2026-09-28 11:22 UTC0.9+7/−104 lines, 3 filesdep −template-haskellPVP ok
2026-09-28 11:16 UTC0.8.11+11/−15 lines, 3 filesPVP ok
2025-12-08 00:55 UTC0.8.10+40/−16 lines, 4 filesdep −transformersdep ~template-haskellPVP: major bump suggested
2024-12-03 12:15 UTC0.8.9+39/−439 lines, 5 filesdep −ghc-primdep −transformers-compatdep ~basedep ~template-haskelldep ~transformersPVP ok
2023-08-08 10:32 UTC0.8.8+14/−10 lines, 3 filesdep ~deepseqdep ~template-haskellPVP ok

showing 5 of 41 versions

Reverse dependencies

2 packages depend on proxied

acme-everything 2018.11.18 requires proxied >=0
libjwt-typed 0.2 requires proxied >=0.3 && <0.4