{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module Streamly.Internal.Data.Stream.Prelude
(
drain
, fromList
, toList
, foldrM
, foldrMx
, foldr
, foldlx'
, foldlMx'
, foldl'
, fold
, eqBy
, cmpBy
)
where
#include "inline.hs"
import Streamly.Internal.Data.Fold.Type (Fold (..))
#ifdef USE_STREAMK_ONLY
import qualified Streamly.Internal.Data.Stream.StreamK as S
import qualified Streamly.Internal.Data.Stream.StreamK.Type as S
#else
import qualified Streamly.Internal.Data.Stream.StreamD.Type as S
#endif
import qualified Streamly.Internal.Data.Stream.StreamK.Type as K
import qualified Streamly.Internal.Data.Stream.StreamD.Type as D
import Prelude hiding (foldr, repeat)
#include "PreludeCommon.hs"