I am using a Haskell compiler online and I would like to be able to read two values from the keyboard (from the input box) two numbers but it throws an error and I do not know how to correct it.
g::Float -> Float -> Float
g n u = 2 - (7/(5**n*u))
main :: IO ()
main = do
n <- getLine
u <- getLine
putStrLn (show (g (read n u :: (Float->Float->Float))))