[Haskell-cafe] monomorphism restriction

Rex Page page at ou.edu
Wed Jun 11 23:17:40 EDT 2008


Definition of f:
    f = foldr (+) 0
Types:
    0 :: (Num t) => t
    foldr (+) 0 :: Num a => [a] -> a
    f :: [Integer] -> Integer

Please remind me, again, of the advantages of f being something different from 
the formula defining it.

  - Rex Page


More information about the Haskell-Cafe mailing list