[Haskell-cafe] Very crazy

Lennart Augustsson lennart at augustsson.net
Tue Sep 25 16:21:31 EDT 2007


Text.printf only has one type.  But it is a bit involved.  Just use it
without worrying exactly how it works. :)

Like 's ++ printtf "%g*x%d" x i'

On 9/25/07, Andrew Coppin <andrewcoppin at btinternet.com> wrote:
>
> Chaddaï Fouché wrote:
> > 2007/9/25, Andrew Coppin <andrewcoppin at btinternet.com>:
> >
> >>> printf don't always perform IO : if you ask it for a String it will
> >>> happily turn into sprintf for you, if you use it in the IO Monad, it
> >>> will indeed perform IO, but there's nothing fundamentally IO bound in
> >>> printf logic.
> >>>
> >>>
> >> That's even *more* impossible... o_O
> >>
> >
> > Why ?
> >
>
> How can one function have more than one type signature?
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070925/ac292395/attachment.htm


More information about the Haskell-Cafe mailing list