Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. print_stderr :: Bool -> Sh a -> Sh a

    shelly Shelly

    Create a sub-Sh with stderr printing on or off Defaults to True.

  2. print_stdout :: Bool -> Sh a -> Sh a

    shelly Shelly

    Create a sub-Sh with stdout printing on or off Defaults to True.

  3. print_commands :: MonadShControl m => Bool -> m a -> m a

    shelly Shelly.Lifted

    No documentation available.

  4. print_commands_with :: MonadShControl m => (Text -> IO ()) -> m a -> m a

    shelly Shelly.Lifted

    No documentation available.

  5. print_stderr :: MonadShControl m => Bool -> m a -> m a

    shelly Shelly.Lifted

    No documentation available.

  6. print_stdout :: MonadShControl m => Bool -> m a -> m a

    shelly Shelly.Lifted

    No documentation available.

  7. print_commands :: Bool -> Sh a -> Sh a

    shelly Shelly.Pipe

    see 'S.print_commands

  8. print_stdout :: Bool -> Sh a -> Sh a

    shelly Shelly.Pipe

    see print_stdout

  9. printf :: MonadIO io => Format (io ()) r -> r

    turtle Turtle.Format

    Print a Format string to standard output (without a trailing newline)

    >>> printf ("Hello, "%s%"!\n") "world"
    Hello, world!
    

  10. printTextAt :: Font -> PointSize -> Point -> String -> Drawing px ()

    Rasterific Graphics.Rasterific

    Draw a string at a given position. Text printing imply loading a font, there is no default font (yet). Below an example of font rendering using a font installed on Microsoft Windows.

    import Graphics.Text.TrueType( loadFontFile )
    import Codec.Picture( PixelRGBA8( .. ), writePng )
    import Graphics.Rasterific
    import Graphics.Rasterific.Texture
    
    main :: IO ()
    main = do
    fontErr <- loadFontFile "test_fonts/DejaVuSans.ttf"
    case fontErr of
    Left err -> putStrLn err
    Right font ->
    writePng "text_example.png" .
    renderDrawing 300 70 (PixelRGBA8 255 255 255 255)
    . withTexture (uniformTexture $ PixelRGBA8 0 0 0 255) $
    printTextAt font (PointSize 12) (V2 20 40)
    "A simple text test!"
    
    You can use any texture, like a gradient while rendering text.

Page 20 of many | Previous | Next