File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ data SProxy (sym :: Symbol) = SProxy
13
13
14
14
-- | A class for known symbols
15
15
class IsSymbol (sym :: Symbol ) where
16
+ -- Note: Before v0.14.0, we did not have polykinds. Thus, we needed
17
+ -- kind-specific proxy types to pass a Symbol around.
18
+ -- Once v0.14.0 was released, we could use the kind-generic `Proxy` type
19
+ -- insteand. However, to reduce the code breakage, we're using
20
+ -- `forall proxy. proxy sym` here so that `SProxy` code will still compile.
21
+ -- When PureScript makes a new breaking release after the v0.14.0 release,
22
+ -- this type signature will be updated to `Proxy sym -> String`.
16
23
reflectSymbol :: forall proxy . proxy sym -> String
17
24
18
25
-- local definition for use in `reifySymbol`
You can’t perform that action at this time.
0 commit comments