The problem is you seem to have enabled the OverloadedString extensions which means that
"foo" :: IsString a => a
To coerce a plain old String
to anything implementing IsString
just use fromString
. In this case however, Happstack has a function html
which looks more appropriate.