Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sieb :: [a -> Bool] -> [a] -> [[a]]
  2. sieb (p:ps) subjects = (filter p subjects)
  3.  
  4. {- PROBLEM:
  5.     Couldn't match type `a' with `[a]'
  6.       `a' is a rigid type variable bound by
  7.           the type signature for sieb :: [a -> Bool] -> [a] -> [[a]]
  8.           at u4.hs:17:1
  9.     Expected type: [a] -> Bool
  10.       Actual type: a -> Bool
  11.     In the first argument of `filter', namely `p'
  12.     In the expression: (filter p subjects)
  13. -}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement