You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lambda-buffers-compiler/src/LambdaBuffers/ProtoCompat/Utils.hs
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{-# OPTIONS_GHC -Wno-orphans #-}
2
2
{-# OPTIONS_GHC -Wno-redundant-constraints #-}
3
3
4
-
moduleLambdaBuffers.ProtoCompat.Utils (prettyModuleName, prettyModuleName', localRef2ForeignRef, filterClassInModule, classClosure) where
4
+
moduleLambdaBuffers.ProtoCompat.Utils (prettyModuleName, prettyModuleName', localRef2ForeignRef, classClosure, filterClassInModule) where
5
5
6
6
importControl.Lens (Getter, to, view, (&), (.~), (^.))
7
7
importData.MapqualifiedasMap
@@ -59,6 +59,8 @@ instance Semigroup Codegen.Error where
59
59
&Codegen.unsupportedOpaqueErrors .~ l ^.Codegen.unsupportedOpaqueErrors <> r ^.Codegen.unsupportedOpaqueErrors
60
60
&Codegen.unsupportedClassErrors .~ l ^.Codegen.unsupportedClassErrors <> r ^.Codegen.unsupportedClassErrors
61
61
62
+
--| Class closure is used by lbg when restricting implementation printing to some user specified classes. The users are able to specify which classes should be printed, for example: print Eq but don't print Json. This is particularly useful when some backends don't support a certain type class.
63
+
62
64
--| `classClosure classRels initialClasses` computes the full class closure reachable from `initialClasses`.
0 commit comments