fix comment display

This commit is contained in:
Joey Hess 2014-12-07 15:10:55 -04:00
parent 4051c8c6ae
commit 5bb761bcf1
1 changed files with 4 additions and 7 deletions

View File

@ -10,16 +10,13 @@ Propellor properites can be parameterized by OS. Currently it has support
for Debian and some untested support for Ubuntu. A property can be parameterized
like this:
[[!format haskell """
foo :: Property
foo = property "foo" withOS desc $ \o -> case o of
(Just (System (Debian _) _)) -> ensureProperty fooDebian
(Just (System (Ubuntu _) _)) -> ensureProperty fooUbuntu
foo :: Property
foo = property "foo" withOS desc $ \o -> case o of
(Just (System (Debian _) _)) -> ensureProperty fooDebian
(Just (System (Ubuntu _) _)) -> ensureProperty fooUbuntu
The first step for adding a new OS will be to modify <http://hackage.haskell.org/package/propellor-1.0.0/docs/Propellor-Types-OS.html>.
Compilation will then warn about all OS parameterized properties that
need to be updated to support your added OS, and it can be taken from there.
I'll accept reasonable patches to support other OS's.
"""]]