put package:relude

Replace the state inside the monad.
Lifted to MonadIO version of putMVar.
Put a value into a TMVar. If the TMVar is currently full, putTMVar will retry.
Lifted version of putStr.
Lifted version of putStrLn.
Lifted version of putStr.
>>> putBS ("Hello, world!" :: ByteString)
Hello, world!
Lifted version of putStrLn.
>>> putBSLn ("Hello, world!" :: ByteString)
Hello, world!
Lifted version of putStr.
>>> putLBS ("Hello, world!" :: LByteString)
Hello, world!
Lifted version of putStrLn.
>>> putLBSLn ("Hello, world!" :: LByteString)
Hello, world!
Lifted version of putStr.
>>> putLText "Hello, world!"
Hello, world!
Lifted version of putStrLn.
>>> putLTextLn "Hello, world!"
Hello, world!
Lifted version of putStr.
>>> putText "Hello, world!"
Hello, world!
Lifted version of putStrLn.
>>> putTextLn "Hello, world!"
Hello, world!
Lifted to MonadIO version of tryPutMVar.
A version of putTMVar that does not retry. The tryPutTMVar function attempts to put the value a into the TMVar, returning True if it was successful, or False otherwise.