Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
outputToVector :: Vector v a => (OutputStream a -> IO b) -> IO (v a)io-streams System.IO.Streams.Vector Given an IO action that requires an OutputStream, creates one and captures all the output the action sends to it as a vector. Example:
ghci> ((connect $ fromList [1, 2, 3]) >>= outputToVector) :: IO (Vector Int) fromList [1,2,3]
outputToVectorSized :: Vector v a => Int -> (OutputStream a -> IO b) -> IO (v a)io-streams System.IO.Streams.Vector Like outputToVector, but allows control over how large the vector buffer is to start with.
toMutableVector :: MVector v a => InputStream a -> IO (v (PrimState IO) a)io-streams System.IO.Streams.Vector Drains an InputStream, converting it to a mutable vector. Note that this function reads the entire InputStream strictly into memory and as such is not recommended for streaming applications or where the size of the input is not bounded or known.
toMutableVectorSized :: MVector v a => Int -> InputStream a -> IO (v (PrimState IO) a)io-streams System.IO.Streams.Vector Like toMutableVector, but allows control over how large the vector buffer is to start with.
toVector :: Vector v a => InputStream a -> IO (v a)io-streams System.IO.Streams.Vector Drains an InputStream, converting it to a vector. Note that this function reads the entire InputStream strictly into memory and as such is not recommended for streaming applications or where the size of the input is not bounded or known.
ghci> is <- Streams.fromList [(1::Int)..4] ghci> Streams.toVector is :: IO (V.Vector Int) fromList [1,2,3,4]
toVectorSized :: Vector v a => Int -> InputStream a -> IO (v a)io-streams System.IO.Streams.Vector Like toVector, but allows control over how large the vector buffer is to start with.
writeVector :: Vector v a => v a -> OutputStream a -> IO ()io-streams System.IO.Streams.Vector Feeds a vector to an OutputStream. Does not write an end-of-stream to the stream.
ghci> let v = V.fromList [1..4] :: V.Vector Int ghci> os <- Streams.unlines Streams.stdout >>= Streams.contramap (S.pack . show) :: IO (OutputStream Int) ghci> Streams.writeVector v os 1 2 3 4
-
postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static No documentation available.
-
postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static No documentation available.
-
postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static No documentation available.