Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setSockOpt :: Storable a => Socket -> SocketOption -> a -> IO ()network Network.Socket Set a socket option.
setSockOptValue :: Socket -> SocketOption -> SockOptValue -> IO ()network Network.Socket Set a socket option value The existential SockOptValue enables things like:
mapM_ (uncurry $ setSockOptValue sock) [ (NoDelay, SockOptValue @Int 1) , (Linger, SockOptValue (StructLinger 1 0)) ]
setSocketOption :: Socket -> SocketOption -> Int -> IO ()network Network.Socket Set a socket option that expects an Int value.
setInput :: forall (m :: Type -> Type) s u . Monad m => s -> ParsecT s u m ()parsec Text.Parsec setInput input continues parsing with input. The getInput and setInput functions can for example be used to deal with #include files.
setParserState :: forall (m :: Type -> Type) s u . Monad m => State s u -> ParsecT s u m (State s u)parsec Text.Parsec setParserState st set the full parser state to st.
setPosition :: forall (m :: Type -> Type) s u . Monad m => SourcePos -> ParsecT s u m ()parsec Text.Parsec setPosition pos sets the current source position to pos.
setSourceColumn :: SourcePos -> Column -> SourcePosparsec Text.Parsec Set the column number of a source position.
setSourceLine :: SourcePos -> Line -> SourcePosparsec Text.Parsec Set the line number of a source position.
setSourceName :: SourcePos -> SourceName -> SourcePosparsec Text.Parsec Set the name of the source.
setState :: forall (m :: Type -> Type) u s . Monad m => u -> ParsecT s u m ()parsec Text.Parsec An alias for putState for backwards compatibility.