Changelog for morley-prelude-0.6.0
0.6.0
- !1364 Update to LTS-21.4 (GHC 9.4.5)
0.5.3
- !1352
Clean-up Buildable ExecutorOp implementation
- New convenience combinators, for
Buildable:quoteFandquoteF'
- New convenience combinators, for
- !1360
Add generic-deriving default Buildable implementation
- We already had
GenericBuildablewhich could be used withDerivingVia, this just adds an option to useBuildablewithDeriveAnyClassfor the same effect, which is a bit more DRY.
- We already had
- !1351
Fix and improve
Buildable MichelsonFailureWithStack- Slightly tweak reflowing braces (
++|,|++) for smarter line breaks - Add a couple more useful formatters,
flatAltFand its particularly useful specialization,quoteOrIndentF
- Slightly tweak reflowing braces (
- !1346
Use proper datatype for Micheline primitives, refactor some FromExp instances
- Add
toEnumSafe, a total version oftoEnumforBoundedtypes - Add
punctuateFformatter toFmt
- Add
- !1348
Make
lengthpolymorphic in its return value - !1342
Implement
prettyprinter-compatible replacement forfmt- New modules,
Fmt,Fmt.Buildable,Fmt.Operators,Fmt.Utils(the latter three are reexported by the former) Fmt.Buildableimplementsfmt-like API on top ofprettyprinterFmt.Operatorsimplements Wadler-Leijen operators missing fromprettyprinter. Additionally, these operators have smartmemptyhandlingFmt.Utilshas some handy type synonyms and helper functions- Important:
Buildableoperates onDocinstead ofBuilder; having a synonym would be more confusing than helpful, so there isn't one; update your code accordingly
- New modules,
0.5.2
- !1290
Add
or,and,or1,and1,notfunctions for overloaded booleans- Add
BooleanMonoidtype class for boolean-like things that can definetrueandfalse.
- Add
0.5.1
- !1080
Add more
PrettyShowtype instances- For lists
- Add instances that forbid defining
PrettyShowforString,Text, andByteString
- !1075
Add suitable types for oddly-sized unsigned integers
- Add a dependency on
OddWord. - Re-export
Word62,Word63types representing unsigned integer word types with odd sizes inPrelude.
- Add a dependency on
- !1025
Reduce the number of unsafe functions at the call site
- Add
unsafe, which is primarily needed for making unsafe counter-parts of safe functions, toUnsafe. - Add
unsafeM, which is similar tounsafe, but throws monadic exceptions.
- Add
- !978
Make it difficult to misuse 'Show'
showexported frommorley-preludenow requires the type to be an instance of an open type familyPrettyShowof kindConstraint. This is intended to discourage the use ofshowfor user-facing output (useBuildableinstead).- The original
showis exported fromDebugmodule, which is intended to be imported qualified.
- !1035 Better type errors on invalid int casts
0.5.0
- !1001
Make fromIntegralNoOverflow safe(r)
fromIntegralNoOverflownow doesn't throwArithExceptionUnderflow- Moved
fromIntegralNoOverflowfromUnsafetoPrelude
- !936
- Hide
Universum'sfromIntegraland redefine it asintCastinPrelude. - Re-export
intCastMaybeasfromIntegralMaybeinPrelude. - Add
fromIntegralToRealFractoPrelude. - Add
fromIntegralOverflowingtoPrelude. - Add
fromIntegralNoOverflowtoUnsafe. - Add
Unsafe.fromIntegralwhich is likeUniversum'sfromIntegralbut raises exception on overflow/underflow.
- Hide
- !945
- Bump Stackage LTS version from 17.9 to 18.10.
0.4.2
- !867
- Hid Prelude's
&&and||operators - Exported
Booleantypeclass and polymorphic&&and||operators.
- Hid Prelude's
0.4.1
- !861
- Removed the re-export of some basic
microlensoperators fromuniversumin favor of the ones fromlenswith the same name.
- Removed the re-export of some basic
- !779
- Export
for.
- Export
0.4.0
-
- Reverted hiding
Typefrom export list.
- Reverted hiding
-
- Replaced mixins and dependency on
basewithbase-noprelude.
- Replaced mixins and dependency on
-
Change the license to MIT.
0.3.0
- Hide
Natexport.
0.2.0.1
- Update maintainer.
0.2.0
- Hide
readFileandwriteFile. - Add
Unsafemodule which re-exportsUniversum.Unsafe.
0.1.0.4
Initial release.
Re-exports universum.