Skip to content

Commit

Permalink
[ refactor ] Remove redundant Bool output from verifyOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
jespercockx committed Jan 6, 2025
1 parent f8b84cb commit e47a4f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Agda2Hs/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ compile opts tlm _ def =

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

0 comments on commit e47a4f1

Please sign in to comment.