From db4121edeeba2899926333df46308ca0baf45b71 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 26 Feb 2017 16:40:34 -0400 Subject: use val instead of show --- src/Propellor/Types/ConfigurableValue.hs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/Propellor/Types') diff --git a/src/Propellor/Types/ConfigurableValue.hs b/src/Propellor/Types/ConfigurableValue.hs index 10a608f8..6235bee9 100644 --- a/src/Propellor/Types/ConfigurableValue.hs +++ b/src/Propellor/Types/ConfigurableValue.hs @@ -2,6 +2,8 @@ module Propellor.Types.ConfigurableValue where +import Data.Word + -- | A value that can be used in a configuration file, or otherwise used to -- configure a program. -- @@ -30,3 +32,12 @@ instance ConfigurableValue Float where instance ConfigurableValue Double where val = show + +instance ConfigurableValue Word8 where + val = show + +instance ConfigurableValue Word16 where + val = show + +instance ConfigurableValue Word32 where + val = show -- cgit v1.2.3