- Generalize atomSpec to suport arbitrary exactSpec matches
- Re-export
Alt
fromConfig.Schema.Spec
- Expose
Config.Schema.Load.Error.simplifyValueSpecMismatch
for providing more focused error feedback. - Added
instance ErrorAnnotation FilePosition
- Update to build against
config-value-0.7.0.0
- Added additional specs and instances to
Config.Schema.Spec
- Primitive number spec now only matches
Number
, previousIntegerSpec
is now derived in terms ofNumberSpec
- Simplify field types of
ValueSpecMismatch
- More aggressively eliminate
TypeMismatch
andWrongAtom
when other, more specific errors, are available.
- Rename
ValueSpec
toPrimValueSpec
- Rename
ValueSpecs
toValueSpec
- Rename
SectionSpec
toPrimSectionSpec
- Rename
SectionSpecs
toSectionsSpec
- Rename
Spec
class toHasSpec
- Rename
valuesSpec
toanySpec
- Custom specifications changed type to expose an error message.
- Move spec types to
Config.Schema.Types
. NowConfig.Schema.Spec
has only the exports needed for building specs and not defining new spec consumers. - Improve schema mismatch type and errors in
Config.Schema.Load.Error
- Support GHC 8.4.1
- Add Spec instances for Int and Word types. All instances including the previous Int instance now validate ranges.
- Changed argument order for
loadValueFromFile
- Add
loadValueFromFile
andSchemaError
. This is intended as a quick way to get a configuration file loaded with all errors being thrown as exceptions.
- Parameterize the Load module on a position type
- Allow Docs module to process recursively defined specifications as long as a named section breaks the loop.
- Add parentheses to docs when needed
- Add support for GHC 7.10.3
- Allow
generateDocs
to work on any ValueSpec, rather than top-level empty-named section specs.
- Added "association list" specifications
- Use
pretty
library for documentation generation - Reorder parameters so that documentation comes last
- Hide implementations of
ValueSpecs
andSectionSpecs
- Expose
liftValueSpec
andliftSectionSpec
- Add
fractionalSpec
- Add
nonemptySpec
andoneOrNonemptySpec
loadValue
returns aNonEmpty LoadError
- First version. Released on an unsuspecting world.