summaryrefslogtreecommitdiff
path: root/src/Propellor/Types
diff options
context:
space:
mode:
authorJoey Hess2017-02-26 16:40:34 -0400
committerJoey Hess2017-02-26 16:40:34 -0400
commitdb4121edeeba2899926333df46308ca0baf45b71 (patch)
tree3af8b426fbff2d0cb1d00a8e250f148ffcb1a3b0 /src/Propellor/Types
parent663fb4cc4545dc25e062fb0bc4af933402923506 (diff)
use val instead of show
Diffstat (limited to 'src/Propellor/Types')
-rw-r--r--src/Propellor/Types/ConfigurableValue.hs11
1 files changed, 11 insertions, 0 deletions
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