[commit: packages/process] master: Add Show and Eq instances to CreateProcess, CmdSpce, and StdStream. (7c63c9f)

git at git.haskell.org git at git.haskell.org
Wed Jul 19 21:16:35 UTC 2017


Repository : ssh://git@git.haskell.org/process

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/7c63c9f4656748b8e7896b3d09a5300f71ad77b2/process

>---------------------------------------------------------------

commit 7c63c9f4656748b8e7896b3d09a5300f71ad77b2
Author: Evan Laforge <qdunkan at gmail.com>
Date:   Fri Mar 18 20:26:33 2016 -0700

    Add Show and Eq instances to CreateProcess, CmdSpce, and StdStream.


>---------------------------------------------------------------

7c63c9f4656748b8e7896b3d09a5300f71ad77b2
 System/Process/Common.hs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/System/Process/Common.hs b/System/Process/Common.hs
index 0c55ff1..3a35e94 100644
--- a/System/Process/Common.hs
+++ b/System/Process/Common.hs
@@ -98,7 +98,7 @@ data CreateProcess = CreateProcess{
                                            --   Default: @Nothing@
                                            --
                                            --   @since 1.4.0.0
- }
+ } deriving (Show, Eq)
 
 data CmdSpec
   = ShellCommand String
@@ -125,6 +125,7 @@ data CmdSpec
       --   see the
       --   <http://msdn.microsoft.com/en-us/library/windows/desktop/aa365527%28v=vs.85%29.aspx documentation>
       --   for the Windows @SearchPath@ API.
+  deriving (Show, Eq)
 
 
 -- | construct a `ShellCommand` from a string literal
@@ -141,6 +142,7 @@ data StdStream
                              -- and newline translation mode (just
                              -- like @Handle at s created by @openFile@).
   | NoStream                 -- ^ No stream handle will be passed
+  deriving (Eq, Show)
 
 -- ----------------------------------------------------------------------------
 -- ProcessHandle type



More information about the ghc-commits mailing list