Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
addReader :: Char -> Reader a -> SExprParser a c -> SExprParser a cs-cargot Data.SCargot.Parse Add the ability to execute some particular reader macro, as defined by its initial character and the Parser which returns the parsed S-Expression. The Reader is passed a Parser which can be recursively called to parse more S-Expressions, and begins parsing after the reader character has been removed from the stream.
>>> import Text.Parsec (alphaNum, char, many1) >>> let vecReader p = (char ']' *> pure SNil) <|> (SCons <$> p <*> vecReader p) >>> let parser = addReader '[' vecReader (mkParser (many1 alphaNum)) >>> decode parser "(an [ele phant])" Right [SCons (SAtom "an") (SCons (SCons (SAtom "ele") (SCons (SAtom "phant") SNil)) SNil)]
-
sbv Documentation.SBV.Examples.Lists.BoundedMutex Symbolic version of the constructor Ready.
-
socket System.Socket Operation already in progress. NOTE: This exception shall not be thrown by any public operation in this library, but is handled internally.
waitRead :: Socket f t p -> Int -> IO ()socket System.Socket.Unsafe No documentation available.
defaultReaderInfo :: ReaderInfosoxlib Sound.SoxLib No documentation available.
openRead :: ReaderInfo -> FilePath -> IO (FormatPtr ReadMode)soxlib Sound.SoxLib This function will never return a nullPtr. Instead it throws a user exception if the file cannot be opened.
withRead :: ReaderInfo -> FilePath -> (FormatPtr ReadMode -> IO a) -> IO asoxlib Sound.SoxLib No documentation available.
chunkReader :: forall (m :: Type -> Type) . MonadIO m => Unfold m () (Array Word8)streamly-core Streamly.Console.Stdio Unfolds standard input into a stream of Word8 arrays.
runReaderT :: Monad m => m s -> Stream (ReaderT s m) a -> Stream m astreamly-core Streamly.Data.Stream Evaluate the inner monad of a stream as ReaderT.
chunkReader :: forall (m :: Type -> Type) . MonadIO m => Unfold m Handle (Array Word8)streamly-core Streamly.FileSystem.Handle Unfolds a handle into a stream of Word8 arrays. Requests to the IO device are performed using a buffer of size defaultChunkSize. The size of arrays in the resulting stream are therefore less than or equal to defaultChunkSize.
>>> chunkReader = Unfold.first IO.defaultChunkSize Handle.chunkReaderWith