X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FhsSyn%2FHsUtils.lhs;h=05352d07930d56562f30f41212cb73d4384f94d1;hb=43a2e4a26175b9dbf29e39b97f7d032ef00f9993;hp=5d106f191d3153349162b490630caa4eedecfaae;hpb=67cb409159fa9136dff942b8baaec25909416022;p=ghc-hetmet.git diff --git a/compiler/hsSyn/HsUtils.lhs b/compiler/hsSyn/HsUtils.lhs index 5d106f1..05352d0 100644 --- a/compiler/hsSyn/HsUtils.lhs +++ b/compiler/hsSyn/HsUtils.lhs @@ -161,6 +161,12 @@ unqualSplice = mkRdrUnqual (mkVarOccFS FSLIT("splice")) -- A name (uniquified later) to -- identify the splice +mkHsQuasiQuote quoter span quote = HsQuasiQuote unqualQuasiQuote quoter span quote + +unqualQuasiQuote = mkRdrUnqual (mkVarOccFS FSLIT("quasiquote")) + -- A name (uniquified later) to + -- identify the quasi-quote + mkHsString s = HsString (mkFastString s) ------------- @@ -417,6 +423,7 @@ collectl (L l pat) bndrs go (SigPatIn pat _) = collectl pat bndrs go (SigPatOut pat _) = collectl pat bndrs + go (QuasiQuotePat _) = bndrs go (TypePat ty) = bndrs go (CoPat _ pat ty) = collectl (noLoc pat) bndrs \end{code}