printf too strict?

Conal Elliott conal at conal.net
Fri Jan 27 02:29:17 CET 2012


I'm seeing more strictness than I'd expect for printf:

    > printf "foo %s\n" (show ([1..10] ++ undefined))
    foo *** Exception: Prelude.undefined

In contrast,

    *Utils.Fabprim.ToHaskell> "foo " ++ show ([1..10] ++ undefined) ++ "\n"
    "foo [1,2,3,4,5,6,7,8,9,10*** Exception: Prelude.undefined

Known issue?

-- Conal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20120126/898104a0/attachment.htm>


More information about the Libraries mailing list