HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulesay-0.1.0.1Haskell2010

Say

  • 9 values
  • Packagesay-0.1.0.1
  • Exports9
  • LanguageHaskell2010
  • LicenceMIT
  • SourceSay.hs

Stdout

3 declarations
valuesay :: MonadIO m => Text -> m ()
#

Send a Text to standard output, appending a newline, and chunking the data. By default, the chunk size is 2048 characters, so any messages below that size will be sent as one contiguous unit. If larger messages are used, it is possible for interleaving with other threads to occur.

valuesayString :: MonadIO m => String -> m ()
#

Same as say, but operates on a String. Note that this will force the entire String into memory at once, and will fail for infinite Strings.

valuesayShow :: (MonadIO m, Show a) => a -> m ()
#

Same as say, but for instances of Show.

If your Show instance generates infinite output, this will fail. However, an infinite result for show would generally be considered an invalid instance anyway.

Stderr

3 declarations

Handle

3 declarations