Haskell: Suppress quotes around strings when shown

Firstly, take a look at this question. Maybe you will be satisfied with toString function.

Secondly, show is a function that maps some value to a String.

So, it makes sense that quotes should be escaped:

> show "string"
"\"string\""

Is there a function that works like f that I’ve described above?

Seems like you’re looking for id:

> putStrLn $ id "string"
string
> putStrLn $ show "string"
"string"

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)