Skip to content

Commit

Permalink
ShowProxy class
Browse files Browse the repository at this point in the history
ShowProxy class exposes a single method of type `Proxy p -> String`.
  • Loading branch information
coot committed Jul 6, 2020
1 parent 4fdf2e0 commit 0a8dfaa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Expand Up @@ -29,6 +29,7 @@ library
Ouroboros.Network.ErrorPolicy
Ouroboros.Network.IOManager
Ouroboros.Network.Mux
Ouroboros.Network.Util.ShowProxy

Ouroboros.Network.Protocol.Handshake
Ouroboros.Network.Protocol.Handshake.Type
Expand Down
@@ -0,0 +1,16 @@
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE QuantifiedConstraints #-}

module Ouroboros.Network.Util.ShowProxy
( ShowProxy (..)
, Proxy (..)
) where

import Data.Proxy (Proxy (..))

class ShowProxy p where
showProxy :: Proxy p -> String

0 comments on commit 0a8dfaa

Please sign in to comment.