[scaffold] add 'production' and 'prod' combinator

This commit is contained in:
Patrick Palka 2012-04-06 12:21:03 -04:00
parent 687961cd22
commit 55bd35fc5c

View File

@ -10,3 +10,9 @@ development =
dev :: a -> a -> a
dev a b = if development then a else b
production :: Bool
production = not development
prod :: a -> a -> a
prod a b = if production then a else b