summaryrefslogtreecommitdiff
path: root/src/Propellor/Types/ConfigurableValue.hs
AgeCommit message (Collapse)Author
2017-02-26noteJoey Hess
2017-02-26use val instead of showJoey Hess
2017-02-26Added ConfigurableValue type classJoey Hess
* Added ConfigurableValue type class, for values that can be used in a config file, or to otherwise configure a program. * The val function converts such values to String. This was motivated by the bug caused by type Port = Int changing to newtype Port = Port Int deriving Show After that change, some things that used show port to generate config files were broken. By using the ConfigurableValue type class instead, such breakage can be prevented.