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
:quoteF
andquoteF'
- New convenience combinators, for
- !1360
Add generic-deriving default Buildable implementation
- We already had
GenericBuildable
which could be used withDerivingVia
, this just adds an option to useBuildable
withDeriveAnyClass
for 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,
flatAltF
and 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 oftoEnum
forBounded
types - Add
punctuateF
formatter toFmt
- Add
- !1348
Make
length
polymorphic 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.Buildable
implementsfmt
-like API on top ofprettyprinter
Fmt.Operators
implements Wadler-Leijen operators missing fromprettyprinter
. Additionally, these operators have smartmempty
handlingFmt.Utils
has some handy type synonyms and helper functions- Important:
Buildable
operates onDoc
instead 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
,not
functions for overloaded booleans- Add
BooleanMonoid
type class for boolean-like things that can definetrue
andfalse
.
- Add
0.5.1
- !1080
Add more
PrettyShow
type instances- For lists
- Add instances that forbid defining
PrettyShow
forString
,Text
, andByteString
- !1075
Add suitable types for oddly-sized unsigned integers
- Add a dependency on
OddWord
. - Re-export
Word62
,Word63
types 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'
show
exported frommorley-prelude
now requires the type to be an instance of an open type familyPrettyShow
of kindConstraint
. This is intended to discourage the use ofshow
for user-facing output (useBuildable
instead).- The original
show
is exported fromDebug
module, which is intended to be imported qualified.
- !1035 Better type errors on invalid int casts
0.5.0
- !1001
Make fromIntegralNoOverflow safe(r)
fromIntegralNoOverflow
now doesn't throwArithException
Underflow
- Moved
fromIntegralNoOverflow
fromUnsafe
toPrelude
- !936
- Hide
Universum
'sfromIntegral
and redefine it asintCast
inPrelude
. - Re-export
intCastMaybe
asfromIntegralMaybe
inPrelude
. - Add
fromIntegralToRealFrac
toPrelude
. - Add
fromIntegralOverflowing
toPrelude
. - Add
fromIntegralNoOverflow
toUnsafe
. - Add
Unsafe.fromIntegral
which is likeUniversum
'sfromIntegral
but 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
Boolean
typeclass and polymorphic&&
and||
operators.
- Hid Prelude's
0.4.1
- !861
- Removed the re-export of some basic
microlens
operators fromuniversum
in favor of the ones fromlens
with the same name.
- Removed the re-export of some basic
- !779
- Export
for
.
- Export
0.4.0
-
- Reverted hiding
Type
from export list.
- Reverted hiding
-
- Replaced mixins and dependency on
base
withbase-noprelude
.
- Replaced mixins and dependency on
-
Change the license to MIT.
0.3.0
- Hide
Nat
export.
0.2.0.1
- Update maintainer.
0.2.0
- Hide
readFile
andwriteFile
. - Add
Unsafe
module which re-exportsUniversum.Unsafe
.
0.1.0.4
Initial release.
Re-exports universum
.