Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit d0c2e03

Browse files
authored
Replace monomorphic proxies by Type.Proxy.Proxy (#44)
1 parent c36dc05 commit d0c2e03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Data/Generic/Rep/Show.purs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module Data.Generic.Rep.Show
99
import Prelude (class Show, show, (<>))
1010
import Data.Foldable (intercalate)
1111
import Data.Generic.Rep
12-
import Data.Symbol (class IsSymbol, SProxy(..), reflectSymbol)
12+
import Data.Symbol (class IsSymbol, reflectSymbol)
13+
import Type.Proxy (Proxy(..))
1314

1415
class GenericShow a where
1516
genericShow' :: a -> String
@@ -41,7 +42,7 @@ instance genericShowConstructor
4142
args -> "(" <> intercalate " " ([ctor] <> args) <> ")"
4243
where
4344
ctor :: String
44-
ctor = reflectSymbol (SProxy :: SProxy name)
45+
ctor = reflectSymbol (Proxy :: Proxy name)
4546

4647
instance genericShowArgsArgument :: Show a => GenericShowArgs (Argument a) where
4748
genericShowArgs (Argument a) = [show a]

0 commit comments

Comments
 (0)