@@ -3,14 +3,18 @@ module Test.Utils.TyDef (
33 tyDef'incoherent ,
44 tyDef'undefinedVar ,
55 tyDef'undefinedVar'var ,
6- tyDef'undefinedlocalTyRef ,
7- tyDef'undefinedlocalTyRef'localTyRef ,
6+ tyDef'undefinedLocalTyRef ,
7+ tyDef'undefinedLocalTyRef'TyRef ,
8+ tyDef'undefinedForeignTyRef ,
9+ tyDef'undefinedForeignTyRef'TyRef ,
810) where
911
1012import LambdaBuffers.Compiler.ProtoCompat.Types (Ty (TyVarI ))
1113import LambdaBuffers.Compiler.ProtoCompat.Types qualified as P
1214import Test.Utils.Constructors (
15+ _ForeignRef' ,
1316 _LocalRef' ,
17+ _ModuleName ,
1418 _SourceInfo ,
1519 _TupleI ,
1620 _TyAbs ,
@@ -60,24 +64,47 @@ tyDef'undefinedVar'var :: P.TyVar
6064tyDef'undefinedVar'var = _TyVar' " b" (_SourceInfo 1 2 )
6165
6266-- | Foo a = Foo Baz b
63- tyDef'undefinedlocalTyRef :: P. TyDef
64- tyDef'undefinedlocalTyRef =
67+ tyDef'undefinedLocalTyRef :: P. TyDef
68+ tyDef'undefinedLocalTyRef =
6569 _TyDef
6670 (_TyName " Foo" )
6771 ( _TyAbs
6872 [(" a" , _Type)]
6973 [
7074 ( " Foo"
7175 , _TupleI
72- [ P. TyRefI tyDef'undefinedlocalTyRef'localTyRef
76+ [ P. TyRefI tyDef'undefinedLocalTyRef'TyRef
7377 , _TyVarI " a"
7478 ]
7579 )
7680 ]
7781 )
7882
79- {- | The undefined Local TyRef (i.e. "Baz") in tyDef'undefinedlocalTyRef .
83+ {- | The undefined Local TyRef (i.e. "Baz") in tyDef'undefinedLocalTyRef .
8084 Exported to see if the test identifies it correctly.
8185-}
82- tyDef'undefinedlocalTyRef'localTyRef :: P. TyRef
83- tyDef'undefinedlocalTyRef'localTyRef = P. LocalI $ _LocalRef' " Baz" (_SourceInfo 1 2 )
86+ tyDef'undefinedLocalTyRef'TyRef :: P. TyRef
87+ tyDef'undefinedLocalTyRef'TyRef = P. LocalI $ _LocalRef' " Baz" (_SourceInfo 1 2 )
88+
89+ -- | Foo a = Foo Baz b
90+ tyDef'undefinedForeignTyRef :: P. TyDef
91+ tyDef'undefinedForeignTyRef =
92+ _TyDef
93+ (_TyName " Foo" )
94+ ( _TyAbs
95+ [(" a" , _Type)]
96+ [
97+ ( " Foo"
98+ , _TupleI
99+ [ P. TyRefI tyDef'undefinedForeignTyRef'TyRef
100+ , _TyVarI " a"
101+ ]
102+ )
103+ ]
104+ )
105+
106+ {- | The undefined Local TyRef (i.e. "Baz") in tyDef'undefinedLocalTyRef.
107+ Exported to see if the test identifies it correctly.
108+ -}
109+ tyDef'undefinedForeignTyRef'TyRef :: P. TyRef
110+ tyDef'undefinedForeignTyRef'TyRef = P. ForeignI $ _ForeignRef' " Baz" (_ModuleName [" Foreign" , " Module" ]) (_SourceInfo 1 2 )
0 commit comments