Skip to content

Commit 324c427

Browse files
authored
feat: add no-deprecations choices (#11)
1 parent b61a10a commit 324c427

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lua/haskell-snippets/pragmas.lua

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,16 @@ pragmas.prag = s({
4242
}),
4343
sn(nil, {
4444
text('OPTIONS_GHC '),
45-
insert(1),
45+
choice(1, {
46+
insert(1),
47+
sn(nil, {
48+
text('-Wno-'),
49+
choice(1, {
50+
insert(1),
51+
text('deprecations'),
52+
}),
53+
}),
54+
}),
4655
text(' #-}'),
4756
}),
4857
sn(nil, {
@@ -126,6 +135,7 @@ pragmas.nowarn = s({
126135
}, {
127136
text('{-# OPTIONS_GHC -fno-warn-'),
128137
choice(1, {
138+
text('deprecations'),
129139
text('orphans'),
130140
text('unused-binds'),
131141
text('unused-matches'),

0 commit comments

Comments
 (0)