Advertisement
Guest User

Untitled

a guest
May 1st, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. [k|k<-[1...floor(sqrt 10)],rem 10 k<1]
  2.  
  3. f n=[k|k<-[1...floor(sqrt n)],rem n k<1]
  4.  
  5. f 10
  6.  
  7. No instance for (Floating t0) arising from a use of `it'
  8. The type variable `t0' is ambiguous
  9. Note: there are several potential instances:
  10. instance Floating Double -- Defined in `GHC.Float'
  11. instance Floating Float -- Defined in `GHC.Float'
  12. In the first argument of `print', namely `it'
  13. In a stmt of an interactive GHCi command: print it
  14.  
  15. f :: (Floating t, Integral t, RealFrac t) => t -> [t]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement