[Haskell-cafe] Newbie: generating a truth table

Martin DeMello martindemello at gmail.com
Tue Feb 6 05:46:44 EST 2007


On 2/6/07, phiroc at free.fr <phiroc at free.fr> wrote:
> Hello,
>
> how would you convert Boolean triples to strings, in the IO function?
>
> printStrings :: (Bool,Bool,Bool) -> IO ()

Take a look at 'show':

Prelude> show True
"True"

martin


More information about the Haskell-Cafe mailing list