so many errors and typos, probable read little more about the language!
I guess that's what you're trying to do
myRemove :: Eq a => a -> [a] -> [a]
myRemove a [] = []
myRemove a (x:xs) | a==x = myRemove a xs
| otherwise = x:(myRemove a xs)
when run with the input
> myRemove 2 [2,1,2,3,2,1,2,3,4]
[1,3,1,3,4]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…