如何在QuasiQuote表达式中编写=
?
[uri|https://graph.facebook.com/me?fields=id,name,email|]
目前我
example/Facebook/test.hs:56:83: error:
parse error on input ‘=’
Perhaps you need a 'let' in a 'do' block?
e.g. 'let x = 5' instead of 'x = 5'
答案 0 :(得分:3)
您需要为QuasiQuotes启用正确的语言扩展才能正常工作。在源代码中:
{-# LANGUAGE QuasiQuotes #-}
GHCI:
:set -XQuasiQuotes