Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <interactive>:5:15: error:
- • Couldn't match expected type ‘[Char] -> t’
- with actual type ‘[Char]’
- • The first argument of ($) takes one argument,
- but its type ‘[Char]’ has none
- In the expression:
- drop 9 x ++ " " take 4 $ drop 5 x ++ " " ++ take 5 x
- In an equation for ‘myReverse’:
- myReverse x = drop 9 x ++ " " take 4 $ drop 5 x ++ " " ++ take 5 x
- • Relevant bindings include
- myReverse :: [Char] -> t (bound at <interactive>:5:1)
- <interactive>:5:27: error:
- • Couldn't match expected type ‘(Int -> [a0] -> [a0])
- -> t0 -> [Char]’
- with actual type ‘[Char]’
- • The function ‘" "’ is applied to two arguments,
- but its type ‘[Char]’ has none
- In the second argument of ‘(++)’, namely ‘" " take 4’
- In the expression: drop 9 x ++ " " take 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement