We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1addabb commit 593496fCopy full SHA for 593496f
core/src/Streamly/Internal/Data/Unbox.hs
@@ -471,13 +471,13 @@ instance Unbox () where
471
472
{-# INLINE fromEnumIoSubSystem #-}
473
fromEnumIoSubSystem :: IoSubSystem -> Int
474
-fromEnumIoSubSystem IoPOSIX = 0
475
-fromEnumIoSubSystem IoNative = 1
+fromEnumIoSubSystem IoPOSIX = 1
+fromEnumIoSubSystem IoNative = 0
476
477
{-# INLINE toEnumIoSubSystem #-}
478
toEnumIoSubSystem :: Int -> IoSubSystem
479
-toEnumIoSubSystem 0 = IoPOSIX
480
-toEnumIoSubSystem 1 = IoNative
+toEnumIoSubSystem 0 = IoNative
+toEnumIoSubSystem 1 = IoPOSIX
481
toEnumIoSubSystem val = error $ show val ++ ": Invalid tag for IoSubSystem"
482
483
instance Unbox IoSubSystem where
0 commit comments