Skip to content

Commit 70b7518

Browse files
committed
making CI happy pt 2
1 parent 46dafe0 commit 70b7518

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

lambda-buffers-compiler/test/Test/DeriveCheck.hs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Test.DeriveCheck (test) where
66
import Control.Lens (Prism, _Left, _Right)
77
import Control.Lens.Extras (is)
88
import Data.Generics.Labels ()
9-
import Data.Generics.Sum.Constructors (AsConstructor (..))
9+
import Data.Generics.Sum.Constructors (AsConstructor (_Ctor))
1010
import Data.Map qualified as M
1111
import Data.Set qualified as S
1212
import Data.Text (Text)
@@ -27,7 +27,7 @@ import LambdaBuffers.Compiler.TypeClass.Rules (
2727
)
2828
import LambdaBuffers.Compiler.TypeClass.Utils (
2929
Instance,
30-
ModuleBuilder (..),
30+
ModuleBuilder (ModuleBuilder, mbClasses, mbInstances, mbScope, mbTyDefs),
3131
TypeClassError,
3232
)
3333
import LambdaBuffers.Compiler.TypeClass.Validate (_X)
@@ -141,9 +141,6 @@ pattern LocalRefP nm = RefP NilP (LitP (Name nm))
141141
pattern ForeignRefP :: [Text] -> Text -> Pat
142142
pattern ForeignRefP mn nm = RefP (LitP (ModuleName mn)) (LitP (Name nm))
143143

144-
pattern LocalRefE :: Text -> Exp
145-
pattern LocalRefE nm = RefE NilE (LitE (Name nm))
146-
147144
pattern ForeignRefE :: [Text] -> Text -> Exp
148145
pattern ForeignRefE mn nm = RefE (LitE (ModuleName mn)) (LitE (Name nm))
149146

@@ -251,6 +248,7 @@ moduleB'1 =
251248
, mbScope = scopeB
252249
}
253250
where
251+
tyDefsB :: M.Map Text Exp
254252
tyDefsB =
255253
M.fromList
256254
[ "Foo" .= DecE (LitE (Name "Foo")) NilE $
@@ -294,6 +292,7 @@ moduleB'2 =
294292
, mbScope = scopeB
295293
}
296294
where
295+
tyDefsB :: M.Map Text Exp
297296
tyDefsB =
298297
M.fromList
299298
[ "Foo" .= DecE (LitE (Name "Foo")) (LitE (TyVar "a") *: nil) $
@@ -331,6 +330,7 @@ moduleB'3 =
331330
, mbScope = scopeB
332331
}
333332
where
333+
tyDefsB :: M.Map Text Exp
334334
tyDefsB =
335335
M.fromList
336336
[ "Foo" .= DecE (LitE (Name "Foo")) (LitE (TyVar "a") *: nil) $
@@ -375,6 +375,7 @@ moduleB'4 =
375375
, mbScope = scopeB
376376
}
377377
where
378+
tyDefsB :: M.Map Text Exp
378379
tyDefsB =
379380
M.fromList
380381
[ "Foo" .= DecE (LitE (Name "Foo")) NilE $
@@ -408,6 +409,7 @@ moduleB'5 =
408409
, mbScope = scopeB
409410
}
410411
where
412+
tyDefsB :: M.Map Text Exp
411413
tyDefsB =
412414
M.fromList
413415
[ "Foo" .= DecE (LitE (Name "Foo")) NilE $
@@ -441,6 +443,7 @@ moduleB'6 =
441443
, mbScope = scopeB
442444
}
443445
where
446+
tyDefsB :: M.Map Text Exp
444447
tyDefsB =
445448
M.fromList
446449
[ "Foo" .= DecE (LitE (Name "Foo")) NilE $
@@ -481,6 +484,7 @@ moduleC'1 =
481484
, mbScope = scopeC
482485
}
483486
where
487+
tyDefsC :: M.Map Text Exp
484488
tyDefsC =
485489
M.fromList
486490
[ "Bar" .= DecE (LitE (Name "Bar")) (tyVarE "a" *: tyVarE "b" *: nil) $
@@ -519,6 +523,7 @@ moduleD'1 =
519523
, mbScope = scopeC
520524
}
521525
where
526+
tyDefsC :: M.Map Text Exp
522527
tyDefsC =
523528
M.fromList
524529
[ "Bar" .= DecE (LitE (Name "Bar")) (tyVarE "a" *: tyVarE "b" *: nil) $
@@ -557,6 +562,7 @@ moduleD'2 =
557562
, mbScope = scopeC
558563
}
559564
where
565+
tyDefsC :: M.Map Text Exp
560566
tyDefsC =
561567
M.fromList
562568
[ "Bar" .= DecE (LitE (Name "Bar")) (tyVarE "a" *: tyVarE "b" *: nil) $
@@ -598,6 +604,7 @@ moduleD'3 =
598604
, mbScope = scopeC
599605
}
600606
where
607+
tyDefsC :: M.Map Text Exp
601608
tyDefsC =
602609
M.fromList
603610
[ "Bar" .= DecE (LitE (Name "Bar")) (tyVarE "a" *: tyVarE "b" *: nil) $

0 commit comments

Comments
 (0)