Skip to content

Commit 9820142

Browse files
adithyaovharendra-kumar
authored andcommitted
Update the package with the latest dependency changes
1 parent 222fda8 commit 9820142

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

cli/Main.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ module Main (main) where
66

77
import Control.Monad (when)
88
import Data.Function ((&))
9-
import Streamly.Prelude (SerialT)
9+
import Streamly.Data.Stream (Stream)
1010
import System.Environment (getArgs)
1111

1212
import qualified Streamly.Data.Fold as Fold
13-
import qualified Streamly.Prelude as Stream
13+
import qualified Streamly.Data.Stream as Stream
1414
import qualified Streamly.Internal.FileSystem.File as File
1515
import qualified Streamly.Internal.Unicode.Stream as Unicode
1616
import qualified Streamly.Internal.System.Command as Command
@@ -50,18 +50,18 @@ generateHoogleFile target bd =
5050
, "--haddock-hoogle"
5151
, "--builddir=" ++ bd
5252
]
53-
in Command.toLines Fold.toList cmd & Stream.last
53+
in Command.toLines Fold.toList cmd & Stream.fold Fold.last
5454

5555
checkoutAndGenerateHoogleFile :: String -> String -> IO (Maybe String)
5656
checkoutAndGenerateHoogleFile target rev = do
5757
step $ unwords ["Generating haddock file for", rev]
5858
checkoutRevision rev
5959
generateHoogleFile target rev
6060

61-
fileToLines :: String -> SerialT IO String
61+
fileToLines :: String -> Stream IO String
6262
fileToLines path =
6363
File.toChunks path & Unicode.decodeUtf8Arrays
64-
& Stream.splitOn (== '\n') Fold.toList
64+
& Stream.foldMany (Fold.takeEndBy_ (== '\n') Fold.toList)
6565

6666
main :: IO ()
6767
main = do

packdiff.cabal

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ library
3737
, Diff
3838
, Pretty
3939
-- other-extensions:
40-
build-depends: base >= 4.10 && < 4.17
41-
, streamly == 0.9.0.*
42-
, containers >= 0.6 && < 0.7
40+
build-depends: base >= 4.10 && < 4.17
41+
, streamly == 0.9.0.*
42+
, streamly-core == 0.1.0.*
43+
, containers >= 0.6 && < 0.7
4344
hs-source-dirs: src
4445
default-language: Haskell2010
4546

@@ -49,6 +50,7 @@ executable packdiff
4950
-- other-extensions:
5051
build-depends: base >= 4.10 && < 4.17
5152
, streamly == 0.9.0.*
53+
, streamly-core == 0.1.0.*
5254
, streamly-process == 0.2.0.*
5355
, packdiff
5456
hs-source-dirs: cli

0 commit comments

Comments
 (0)