Guest User

Untitled

a guest
Apr 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Prelude> :reload
  2. [1 of 1] Compiling Main ( promedio.hs, interpreted )
  3.  
  4. promedio.hs:3:14:
  5. No instance for (Fractional Int)
  6. arising from a use of `/' at promedio.hs:3:14-68
  7. Possible fix: add an instance declaration for (Fractional Int)
  8. In the expression:
  9. fromIntegral (sum (x : xs)) / fromIntegral (length (x : xs))
  10. In the definition of `prom':
  11. prom (x : xs)
  12. = fromIntegral (sum (x : xs)) / fromIntegral (length (x : xs))
  13. Failed, modules loaded: none.
Add Comment
Please, Sign In to add comment