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.

  1. 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]
    

  2. 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.

  3. 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.

  4. 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.

  5. 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]
    

  6. 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.

  7. 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
    

  8. array_int2vector :: TypeInfo

    postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static

    No documentation available.

  9. array_int2vectorOid :: Oid

    postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static

    No documentation available.

  10. array_oidvector :: TypeInfo

    postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static

    No documentation available.

Page 47 of many | Previous | Next