How do I hide the Monad instance of [] (or [] in general)?

Viewed 281

I'm trying to work through some of the exercises in the Typeclassopedia, but I'm having trouble defining my own Monad instance of [], because I can't seem to hide it. I was able to hide Maybe effectively, but when I try to hide [], I get this error: parse error on input '['

I'm using this line of code to import:

import Prelude hiding (Maybe, Just, Nothing, [])

Changing [] to ([]) doesn't fix this issue, either.

I'm not sure how to do this. Any help would be great! Thanks!

2 Answers
Related