Skip to content

Commit

Permalink
Remove proxy types (#288)
Browse files Browse the repository at this point in the history
* Drop deprecated SProxy, RProxy, RLProxy, Proxy2, and Proxy3

* Remove other forall proxy workarounds missed previously

* Remove forall proxy workaround comment

* Drop Proxy2/Proxy3 instances for various type classes

* Update changelog entry
  • Loading branch information
JordanMartinez authored Mar 14, 2022
1 parent b3e64dd commit 3042bcb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 38 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ Notable changes to this project are documented in this file. The format is based
Breaking changes:
- Migrated FFI to ES Modules (#287 by @kl0tl and @JordanMartinez)
- Change Generic Rep's `NoConstructors` to newtype `Void` (#282 by @JordanMartinez)
- Replace `forall proxy. proxy k` workaound with `Proxy k` (#281 by @JordanMartinez)
- Drop all kind-specific Proxy types (e.g. `Proxy2`, `Proxy3`) (#281 by @JordanMartinez)
- Replaced polymorphic proxies with monomorphic `Proxy` (#281, #288 by @JordanMartinez)

New features:

Expand Down
6 changes: 0 additions & 6 deletions src/Data/Symbol.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@ module Data.Symbol
( class IsSymbol
, reflectSymbol
, reifySymbol
, SProxy(..)
) where

import Type.Proxy (Proxy(..))

-- | A value-level proxy for a type-level symbol.
-- | **Deprecated as of v0.14.0 PureScript release**: use `Type.Proxy` instead.
data SProxy :: Symbol -> Type
data SProxy sym = SProxy

-- | A class for known symbols
class IsSymbol (sym :: Symbol) where
reflectSymbol :: Proxy sym -> String
Expand Down
22 changes: 0 additions & 22 deletions src/Type/Data/Row.purs

This file was deleted.

8 changes: 0 additions & 8 deletions src/Type/Data/RowList.purs

This file was deleted.

0 comments on commit 3042bcb

Please sign in to comment.