如何在=表达式中编写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'发布于 2017-03-22 19:06:49
您需要为QuasiQuotes启用正确的语言扩展。在源代码中:
{-# LANGUAGE QuasiQuotes #-}在GHCI:
:set -XQuasiQuotes https://stackoverflow.com/questions/42960485
复制相似问题