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
ifany (`isPrefixOf` prettyShow m) primModules thenpure$Skip()
59
-
elsedo
60
60
reportSDoc "agda2hs.compile"3$ text "Compiling module: "<+> prettyTCM m
61
61
setScope . iInsideScope =<< curIF
62
62
return$Recompile m
@@ -120,6 +120,7 @@ verifyOutput ::
120
120
verifyOutput _ _ _ m ls =do
121
121
reportSDoc "agda2hs.compile"5$ text "Checking generated output before rendering: "<+> prettyTCM m
122
122
ensureUniqueConstructors
123
+
ensureNoOutputFromPrimModules
123
124
where
124
125
ensureUniqueConstructors =do
125
126
let allCons =do
@@ -134,3 +135,18 @@ verifyOutput _ _ _ m ls = do
134
135
duplicateCons =filter ((>1) .length) . group . sort $ allCons
135
136
when (length duplicateCons >0) $
136
137
genericDocError =<< vcat (map (\x -> text $"Cannot generate multiple constructors with the same identifier: "<>Hs.prettyPrint (headWithDefault __IMPOSSIBLE__ x)) duplicateCons)
0 commit comments