From c2f195a23bdb0d0dc876cc548d4c3157534082c6 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Thu, 10 Oct 2024 16:38:51 -0600 Subject: Add backend support and start implementing a C backend.o --- src/Language/Fiddle/Compiler.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Language/Fiddle/Compiler.hs') diff --git a/src/Language/Fiddle/Compiler.hs b/src/Language/Fiddle/Compiler.hs index 571c7b0..afe8f64 100644 --- a/src/Language/Fiddle/Compiler.hs +++ b/src/Language/Fiddle/Compiler.hs @@ -201,6 +201,7 @@ coloredFormat = DiagnosticFormat $ \diags -> -- | Prints a list of diagnostics to 'stderr' using the specified -- diagnostic format. printDiagnostics :: DiagnosticFormat -> [Diagnostic] -> IO () +printDiagnostics _ [] = return () printDiagnostics fmt d = hPutStrLn stderr (diagnosticsToString fmt d) -- | Prints a single diagnostic to 'stderr' using the 'coloredFormat' -- cgit