Skip to content

Commit

Permalink
feat: add no-deprecations choices (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorias committed Nov 5, 2023
1 parent b61a10a commit 324c427
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lua/haskell-snippets/pragmas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ pragmas.prag = s({
}),
sn(nil, {
text('OPTIONS_GHC '),
insert(1),
choice(1, {
insert(1),
sn(nil, {
text('-Wno-'),
choice(1, {
insert(1),
text('deprecations'),
}),
}),
}),
text(' #-}'),
}),
sn(nil, {
Expand Down Expand Up @@ -126,6 +135,7 @@ pragmas.nowarn = s({
}, {
text('{-# OPTIONS_GHC -fno-warn-'),
choice(1, {
text('deprecations'),
text('orphans'),
text('unused-binds'),
text('unused-matches'),
Expand Down

0 comments on commit 324c427

Please sign in to comment.