put package:relude
Replace the state inside the monad.
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!