~/w/r/s/haskell> ghc --make rpn
[1 of 1] Compiling Main ( rpn.hs, rpn.o )
rpn.hs:5:25:
Could not deduce (Fractional a) arising from a use of `func'
from the context (Num a, Read a)
bound by the type signature for
solveRPN :: (Num a, Read a) => String -> a
at rpn.hs:(5,1)-(11,39)
Possible fix:
add (Fractional a) to the context of
the type signature for solveRPN :: (Num a, Read a) => String -> a
In the first argument of `foldl', namely `func'
In the first argument of `(.)', namely `foldl func []'
In the second argument of `(.)', namely `foldl func [] . words'