diff options
author | Cale Gibbard <cgibbard@gmail.com> | 2020-10-07 02:31:36 -0400 |
---|---|---|
committer | cgibbard <cgibbard@gmail.com> | 2020-12-31 13:05:42 -0500 |
commit | 9b563330203e209f5e0b687108f08ddf0d2f3177 (patch) | |
tree | 4e09fc2b8f4148daac8238bfb40d9352e2e29413 /compiler/GHC/Tc/Gen/Bind.hs | |
parent | 2113a1d600e579bb0f54a0526a03626f105c0365 (diff) | |
download | haskell-9b563330203e209f5e0b687108f08ddf0d2f3177.tar.gz |
INLINE pragma for patterns (#12178)
Allow INLINE and NOINLINE pragmas to be used for patterns.
Those are applied to both the builder and matcher (where applicable).
Diffstat (limited to 'compiler/GHC/Tc/Gen/Bind.hs')
-rw-r--r-- | compiler/GHC/Tc/Gen/Bind.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Tc/Gen/Bind.hs b/compiler/GHC/Tc/Gen/Bind.hs index 896ded667b..178390192f 100644 --- a/compiler/GHC/Tc/Gen/Bind.hs +++ b/compiler/GHC/Tc/Gen/Bind.hs @@ -445,10 +445,10 @@ tc_single :: forall thing. TopLevelFlag -> TcSigFun -> TcPragEnv -> LHsBind GhcRn -> IsGroupClosed -> TcM thing -> TcM (LHsBinds GhcTc, thing) -tc_single _top_lvl sig_fn _prag_fn +tc_single _top_lvl sig_fn prag_fn (L _ (PatSynBind _ psb@PSB{ psb_id = L _ name })) _ thing_inside - = do { (aux_binds, tcg_env) <- tcPatSynDecl psb (sig_fn name) + = do { (aux_binds, tcg_env) <- tcPatSynDecl psb (sig_fn name) prag_fn ; thing <- setGblEnv tcg_env thing_inside ; return (aux_binds, thing) } |