on master help sign in
Move IOVec and dependent modules under !ghcjs && dev flag
commita39a95824f4113d2b4abae2c4f5297775e961681 authorAdithya Kumar <adithya@composewell.com> dateTue 27 Sep 2022, 18:36 (4 years ago) parent4c876d4
2 files changed+9−4
src/Streamly/Internal/Unicode/Stream.hs+2 streamly.cabal+7−4
src/Streamly/Internal/Unicode/Stream.hs+2
@@ -95,7 +95,9 @@ import Data.Char (generalCategory, GeneralCategory(Space))
9595import Data.Word (Word8)
9696import Foreign.Marshal.Alloc (mallocBytes)
9797import Foreign.Storable (Storable(..))
98+#ifndef __GHCJS__
9899import Fusion.Plugin.Types (Fuse(..))
100+#endif
99101import GHC.Base (assert, unsafeChr)
100102import GHC.Exts (Addr#)
101103import GHC.IO.Encoding.Failure (isSurrogate)
streamly.cabal+7−4
@@ -488,13 +488,9 @@ library
488488 , Streamly.Internal.Unicode.Array.Char
489489
490490 -- streamly-filesystem
491− , Streamly.Internal.System.IOVec.Type
492− , Streamly.Internal.System.IOVec
493491 , Streamly.Internal.FileSystem.Handle
494492 , Streamly.Internal.FileSystem.Dir
495493 , Streamly.Internal.FileSystem.File
496− , Streamly.Internal.FileSystem.FDIO
497− , Streamly.Internal.FileSystem.FD
498494
499495 -- streamly-console
500496 , Streamly.Internal.Console.Stdio
@@ -523,6 +519,13 @@ library
523519 , Streamly.Memory.Array
524520 , Streamly.Data.Array.Foreign
525521
522+ if !impl(ghcjs) && flag(dev)
523+ exposed-modules:
524+ Streamly.Internal.System.IOVec.Type
525+ , Streamly.Internal.System.IOVec
526+ , Streamly.Internal.FileSystem.FDIO
527+ , Streamly.Internal.FileSystem.FD
528+
526529 reexported-modules:
527530 -- streamly-core exposed modules
528531 , Streamly.Data.Unfold