on master help sign in
Move IOVec and dependent modules under !ghcjs && dev flag
a39a958Adithya Kumar
src/Streamly/Internal/Unicode/Stream.hs+2
@@ -95,7 +95,9 @@ import Data.Char (generalCategory, GeneralCategory(Space))
95import Data.Word (Word8)
95import Data.Word (Word8)
96import Foreign.Marshal.Alloc (mallocBytes)
96import Foreign.Marshal.Alloc (mallocBytes)
97import Foreign.Storable (Storable(..))
97import Foreign.Storable (Storable(..))
98+#ifndef __GHCJS__
98import Fusion.Plugin.Types (Fuse(..))
99import Fusion.Plugin.Types (Fuse(..))
100+#endif
99import GHC.Base (assert, unsafeChr)
101import GHC.Base (assert, unsafeChr)
100import GHC.Exts (Addr#)
102import GHC.Exts (Addr#)
101import GHC.IO.Encoding.Failure (isSurrogate)
103import GHC.IO.Encoding.Failure (isSurrogate)
streamly.cabal+7−4
@@ -488,13 +488,9 @@ library
488 , Streamly.Internal.Unicode.Array.Char
488 , Streamly.Internal.Unicode.Array.Char
489
489
490 -- streamly-filesystem
490 -- streamly-filesystem
491− , Streamly.Internal.System.IOVec.Type
492− , Streamly.Internal.System.IOVec
493 , Streamly.Internal.FileSystem.Handle
491 , Streamly.Internal.FileSystem.Handle
494 , Streamly.Internal.FileSystem.Dir
492 , Streamly.Internal.FileSystem.Dir
495 , Streamly.Internal.FileSystem.File
493 , Streamly.Internal.FileSystem.File
496− , Streamly.Internal.FileSystem.FDIO
497− , Streamly.Internal.FileSystem.FD
498
494
499 -- streamly-console
495 -- streamly-console
500 , Streamly.Internal.Console.Stdio
496 , Streamly.Internal.Console.Stdio
@@ -523,6 +519,13 @@ library
523 , Streamly.Memory.Array
519 , Streamly.Memory.Array
524 , Streamly.Data.Array.Foreign
520 , Streamly.Data.Array.Foreign
525
521
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+
526 reexported-modules:
529 reexported-modules:
527 -- streamly-core exposed modules
530 -- streamly-core exposed modules
528 , Streamly.Data.Unfold
531 , Streamly.Data.Unfold