gdritter repos config-ini / 98ba188
Add "sectionOpt" to sample spec Getty Ritter 7 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Collapse all Expand all
88 module Data.Ini.Config.Bidir
99 (
1010 -- $main
11
1112 -- * Parsing, Serializing, and Updating Files
1213 -- $using
1314 parseIniFile
674675 'section' \"NETWORK\" $ do
675676 cfHost '.=' 'field' \"host\" 'string'
676677 cfPost '.=' 'field' \"port\" 'number'
677 'section' \"LOCAL\" $ do
678 'sectionOpt' \"LOCAL\" $ do
678679 cfUser '.=?' 'field' \"user\" 'text'
679680 @
680681
711712 cfPost '.=' 'field' \"port\" 'number'
712713 & 'comment' [\"The port number\"]
713714 & 'defaultValue' 9999
714 'section' \"LOCAL\" $ do
715 'sectionOpt' \"LOCAL\" $ do
715716 cfUser '.=?' 'field' \"user\" 'text'
716717 @
717718