Advertisement
Guest User

Untitled

a guest
Jul 8th, 2022
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <interactive>:5:15: error:
  2. • Couldn't match expected type ‘[Char] -> t’
  3. with actual type ‘[Char]’
  4. • The first argument of ($) takes one argument,
  5. but its type ‘[Char]’ has none
  6. In the expression:
  7. drop 9 x ++ " " take 4 $ drop 5 x ++ " " ++ take 5 x
  8. In an equation for ‘myReverse’:
  9. myReverse x = drop 9 x ++ " " take 4 $ drop 5 x ++ " " ++ take 5 x
  10. • Relevant bindings include
  11. myReverse :: [Char] -> t (bound at <interactive>:5:1)
  12.  
  13. <interactive>:5:27: error:
  14. • Couldn't match expected type ‘(Int -> [a0] -> [a0])
  15. -> t0 -> [Char]’
  16. with actual type ‘[Char]’
  17. • The function ‘" "’ is applied to two arguments,
  18. but its type ‘[Char]’ has none
  19. In the second argument of ‘(++)’, namely ‘" " take 4’
  20. In the expression: drop 9 x ++ " " take 4
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement