Add "sectionOpt" to sample spec
Getty Ritter
8 years ago
| 8 | 8 | module Data.Ini.Config.Bidir |
| 9 | 9 | ( |
| 10 | 10 | -- $main |
| 11 | ||
| 11 | 12 | -- * Parsing, Serializing, and Updating Files |
| 12 | 13 | -- $using |
| 13 | 14 | parseIniFile |
| 674 | 675 | 'section' \"NETWORK\" $ do |
| 675 | 676 | cfHost '.=' 'field' \"host\" 'string' |
| 676 | 677 | cfPost '.=' 'field' \"port\" 'number' |
| 677 |
'section |
|
| 678 | 'sectionOpt' \"LOCAL\" $ do | |
| 678 | 679 | cfUser '.=?' 'field' \"user\" 'text' |
| 679 | 680 | @ |
| 680 | 681 | |
| 711 | 712 | cfPost '.=' 'field' \"port\" 'number' |
| 712 | 713 | & 'comment' [\"The port number\"] |
| 713 | 714 | & 'defaultValue' 9999 |
| 714 |
'section |
|
| 715 | 'sectionOpt' \"LOCAL\" $ do | |
| 715 | 716 | cfUser '.=?' 'field' \"user\" 'text' |
| 716 | 717 | @ |
| 717 | 718 | |