[Haskell-cafe] pi

Don Stewart dons at galois.com
Tue Oct 9 16:07:28 EDT 2007

> I just noticed that pi doesn't have a default definition in the standard
> prelude, according to the Haddock docs.  Why is this?

    $ ghci
    Prelude> :t pi
    pi :: (Floating a) => a

    Prelude> pi

It's in the Floating class.

-- Don

More information about the Haskell-Cafe mailing list