From 81673dd2be73c0d276af2ff4e9d5503c07189d53 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 4 Mar 2019 19:33:13 -0500 Subject: [PATCH] src/Volumetric.hs: add type annotations to avoid monomorphism warnings. --- src/Volumetric.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Volumetric.hs b/src/Volumetric.hs index 64669fe..2f2819c 100644 --- a/src/Volumetric.hs +++ b/src/Volumetric.hs @@ -138,9 +138,9 @@ values_to_colors arr = truncate_rgb (r, g, b) = (r', g', b') where - r' = truncate (r * 255) - g' = truncate (g * 255) - b' = truncate (b * 255) + r' = truncate (r * 255) :: Word8 + g' = truncate (g * 255) :: Word8 + b' = truncate (b * 255) :: Word8 write_values_to_bmp :: FilePath -> Values2D -> IO () -- 2.44.2