Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

NodeIPC example removed from Win32 compilation #150

Merged
merged 1 commit into from
May 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions cardano-shell.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ library
, Cardano.Shell.Presets
, Cardano.Shell.Features.Logging
other-modules:
Cardano.Shell.NodeIPC.Example
, Cardano.Shell.NodeIPC.Lib
Cardano.Shell.NodeIPC.Lib
, Cardano.Shell.NodeIPC.Message
if !os(windows)
other-modules:
Cardano.Shell.NodeIPC.Example

hs-source-dirs:
app
, src
Expand Down Expand Up @@ -179,7 +182,10 @@ test-suite cardano-shell-test
other-modules:
Paths_cardano_shell
DhallConfigSpec
if !os(windows)
other-modules:
NodeIPCSpec

hs-source-dirs:
test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
Expand Down
6 changes: 6 additions & 0 deletions src/Cardano/Shell/NodeIPC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<https://github.com/input-output-hk/cardano-shell/blob/develop/specs/CardanoShellSpec.pdf>
-}

{-# LANGUAGE CPP #-}

module Cardano.Shell.NodeIPC
(-- * Data types
Port(..)
Expand All @@ -21,9 +23,11 @@ module Cardano.Shell.NodeIPC
-- * Used for testing
, sendMessage
, readMessage
#if !defined(mingw32_HOST_OS)
, exampleWithFD
, exampleWithProcess
, getReadWriteHandles
#endif
-- * Predicates
, isIPCException
, isHandleClosed
Expand All @@ -32,9 +36,11 @@ module Cardano.Shell.NodeIPC
, isNodeChannelCannotBeFound
) where

#if !defined(mingw32_HOST_OS)
import Cardano.Shell.NodeIPC.Example (exampleWithFD,
exampleWithProcess,
getReadWriteHandles)
#endif
import Cardano.Shell.NodeIPC.Lib (MessageSendFailure (..), MsgIn (..),
MsgOut (..), NodeIPCException (..),
Port (..), ProtocolDuration (..),
Expand Down