Changelog History
Page 1
-
v1.3.3.1 Changes
November 08, 2021- 🏗 Disable building executables by default
- ⬆️ Bump up dependencies:
- Allow
bytestring-0.11.*
- Allow
hashable-1.4.0.0
- Allow
megaparsec-9.2.0
- Allow
time-1.13
- Allow
transformers-0.6.*
- Allow
-
v1.3.3.0 Changes
March 14, 2021 -
v1.3.2.0 Changes
February 12, 2021- #186:
Implement TOML difference. Add
decodeExact
anddecodeFileExact
. - #325:
Add ability to one or multiline printing to
PrintOptions
for arrays. - #329:
Add
_Harcoded
codec andhardcoded
combinator. - #333: Fix bug with parsing leading zeroes in numeric values.
- #334:
Escape unicode characters correctly in
encode
. - #364:
Update GHC from
8.10.2
to8.10.4
. - #358:
Upgrade
parser-combinators
upper bound to allow1.3
.
- #186:
Implement TOML difference. Add
-
v1.3.1.0 Changes
September 21, 2020 -
v1.3.0.0 Changes
May 19, 2020- #253: Support GHC-8.10.1. Move to GHC-8.8.3 from 8.8.1.
- ⬇️ Drop support of GHC-8.2.2.
- #271:
Use
Validation
fromvalidation-selective
inTomlEnv
. This allows to accumulate and display all errors that occurs during the decoding phase. All previous decode functions return list of allTomlDecodeError
s.
Note: Due to the specific of
Validation
data type, there is noMonad
instanse ofCodec
anymore. However, this doesn't limit any previously released features.- ➕ Add
decodeValidation
,decodeFileValidation
functions to returnValidation
instead ofEither
. - #263:
Simplify
Codec
abstraction. Instead of havingCodec r w c a
now it isCodec TomlEnv TomlState c a
.
Remove
BiCodec
as it is simpleTomlCodec
with this change.Migration guide: If you use
Toml
module (as advised by the library) then no changes required in your code. If you import some particular modules fromtomland
here is the renaming scheme you can use to apply to your imports:| Old | New | |-----|-----| |
Toml.Bi
|Toml.Codec
| |Toml.Bi.Combinators
|Toml.Codec.Combinator
| |Toml.Bi.Monad
|Toml.Codec.Types
| |Toml.Bi.Code
|Toml.Codec.Code
orToml.Codec.Types
orToml.Codec.Error
| |Toml.Bi.Map
|Toml.Codec.BiMap
orToml.Codec.BiMap.Conversion
| |Toml.Generic
|Toml.Codec.Generic
| |Toml.Edsl
|Toml.Type.Edsl
| |Toml.Printer
|Toml.Type.Printer
| |Toml.PrefixTree
|Toml.Type.PrefixTree
orToml.Type.Key
|- #283:
Documentation improvements:
- Add Codec Tables to each kind of codecs with examples
- Add high-level description to each reexported module
- Add @since annotations
- Improve README
- Add more examples into functions
- #237:
Add
BiMap
_Validate
and codecsvalidate
andvalidateIf
for custom validation. - #289:
Add
_Coerce
TomlBiMap
. - #270:
Add
pair
andtriple
codecs for tuples. - #261:
Implement
tableMap
codec to use TOML keys asMap
keys. - #243:
Implement
hashMap
,tableHashMap
,intMap
,tableIntMap
codec combinators. - ➕ Add
intSet
codec. - ➕ Add
_KeyInt
BiMap
for key-as-int approach. - #242:
Add
HasCodec
instances forMap
,HashMap
andIntMap
forGeneric
deriving. - #272:
Add
TomlTable
newtype to be used in genericDerivingVia
. - #251:
Implement
ByteStringAsText
,ByteStringAsBytes
,LByteStringAsText
,LByteStringAsBytes
newtypes. Add correspondingHasCodec
instances for these data types. - #311:
Reimplement custom
TomlState
instead of usingMaybeT
andState
. - 👀 Rename
ParseException
toTomlParseError
. - 📇 Rename
DecodeException
toTomlDecodeError
. - ➕ Add
TableArrayNotFound
constructor toTomlDecodeError
. - ✂ Remove
TrivialError
andTypeMismatch
constructors of theTomlDecodeError
type. - #313:
Store
Key
in theBiMapError
constructor ofTomlDecodeError
. - ➕ Add
decodeFileEither
andencodeToFile
functions. - 🛠 Fix
sum
andproduct
behaviour on missing fields. Now it returns the wrapper ofmempty
instead of failure. - #302:
nonEmpty
codec throwsTableArrayNotFound
instead ofTableNotFound
. - #318:
Export a function for parsing TOML keys
parseKey
. - #310:
Add tests on all kinds of
TomlDecodeError
withdecode
function. - #218: Add tests for TOML validation.
- #252:
Move to
hspec-*
family of libraries fromtasty-*
. - #297: Tests parallelism and speed-up.
- #246:
Bump up
megaparsec
version to8.0.0
.
-
v1.2.1.0 Changes
November 06, 2019 -
v1.2.0.0 Changes
October 12, 2019- #216: Refactor TOML parser significantly. Check for some validation errors. (by @chshersh)
- #213: Support GHC-8.8.1. (by @vrom911)
- #226:
Add
dimatch
combinator for better support of sum types. (by @Nimor111) - #219: Add INLINE pragmas to code. (by @willbasky)
- #204:
Implement bidirectional codecs to work with
ByteString
as array of bytes. (by @crtschin) - #201:
Implement
set
andhashSet
combinators for array of tables. (by @SanchayanMaity) - #215: Move benchmarks to separate repository toml-benchmarks. (by @kutyel)
- #209:
Bump up
parser-combinators
to1.2.0
. (by @vrom911) - #198: Improve test generators. (by @gabrielelana , @chshersh )
-
v1.1.0.1 Changes
July 10, 2019- #206: Fix in parser of inline tables inside tables, add tests for official TOML examples (by @jiegillet)
-
v1.1.0.0 Changes
July 08, 2019- #154:
Implement
Generic
bidirectional codecs (by @chshersh). - #145: Add support for inline table arrays (by @jiegillet).
- #195: Fix an exponential parser behavior for parsing table of arrays (by @jiegillet).
- #190:
Add
enumBounded
codec for nullary sum types (by @mxxo). - #189:
Breaking change: Implement custom table sorting by keys. Also fields of
the
PrintOptions
data type were renamed according to style guide (by @ramanshah).
Before:
data PrintOptions = PrintOptions { shouldSort :: Bool , indent :: Int } deriving (Show)
Now:
data PrintOptions = PrintOptions { printOptionsSorting :: !(Maybe (Key -> Key -> Ordering)) , printOptionsIndent :: !Int }
Migration guide: If you used
indent
field, useprintOptionsIndent
instead. If you usedshouldSort
, useprintOptionsSorting
instead and passNothing
instead ofFalse
orJust compare
instead ofTrue
. - #154:
Implement
-
v1.0.1.0 Changes
May 17, 2019