Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [k|k<-[1...floor(sqrt 10)],rem 10 k<1]
- f n=[k|k<-[1...floor(sqrt n)],rem n k<1]
- f 10
- No instance for (Floating t0) arising from a use of `it'
- The type variable `t0' is ambiguous
- Note: there are several potential instances:
- instance Floating Double -- Defined in `GHC.Float'
- instance Floating Float -- Defined in `GHC.Float'
- In the first argument of `print', namely `it'
- In a stmt of an interactive GHCi command: print it
- f :: (Floating t, Integral t, RealFrac t) => t -> [t]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement