I get an error when I use the following Haskell code inside Hamlet Yesod:
#{show $ (read "True" :: Bool)}
It seems it doesn't accept ':'
characters, but I actually need it.
The error is the following:
Handler/Game.hs:85:11:
Exception when trying to run compile-time code:
"#{show $ read "True" :: Bool}" (line 1, column 25):
unexpected ":"
expecting "}"
Is it possible to bypass this error and be able to use Prelude.read
?