Skip to content

Commit e4047f6

Browse files
committed
[ refactor ] Remove redundant Bool output from verifyOutput
1 parent f6bd2c8 commit e4047f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Agda2Hs/Compile.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ compile opts tlm _ def =
116116

117117
verifyOutput ::
118118
Options -> ModuleEnv -> IsMain -> TopLevelModuleName
119-
-> [(CompiledDef, CompileOutput)] -> TCM Bool
119+
-> [(CompiledDef, CompileOutput)] -> TCM ()
120120
verifyOutput _ _ _ m ls = do
121121
reportSDoc "agda2hs.compile" 5 $ text "Checking generated output before rendering: " <+> prettyTCM m
122122
ensureUniqueConstructors
@@ -134,4 +134,3 @@ verifyOutput _ _ _ m ls = do
134134
duplicateCons = filter ((> 1) . length) . group . sort $ allCons
135135
when (length duplicateCons > 0) $
136136
genericDocError =<< vcat (map (\x -> text $ "Cannot generate multiple constructors with the same identifier: " <> Hs.prettyPrint (headWithDefault __IMPOSSIBLE__ x)) duplicateCons)
137-
return (length duplicateCons == 0)

0 commit comments

Comments
 (0)