I am trying to seperate Strings with " ," with "intersperse". (Beginner in Haskell ) But my program refuses to compile , because I get the error "Not in scope intersperse" Therefore I wrote import Data.Char at the top of my program , but the problem keeps refusing to compile.
import Data.Char
myShow :: String -> String
myShow s = concat ["[", intersperse ',' s, "]"]
What to do ? Thanks.