Down -package:math-extras

The Down type allows you to reverse sort order conveniently. A value of type Down a contains a value of type a (represented as Down a). If a has an Ord instance associated with it then comparing two values thus wrapped will give you the opposite of their normal sort order. This is particularly useful when sorting in generalised list comprehensions, as in: then sortWith by Down x.
>>> compare True False
GT
>>> compare (Down True) (Down False)
LT
If a has a Bounded instance then the wrapped instance also respects the reversed ordering by exchanging the values of minBound and maxBound.
>>> minBound :: Int
-9223372036854775808
>>> minBound :: Down Int
Down 9223372036854775807
All other instances of Down a behave as they do for a.
The Down type allows you to reverse sort order conveniently. A value of type Down a contains a value of type a (represented as Down a). If a has an Ord instance associated with it then comparing two values thus wrapped will give you the opposite of their normal sort order. This is particularly useful when sorting in generalised list comprehensions, as in: then sortWith by Down x.
>>> compare True False
GT
>>> compare (Down True) (Down False)
LT
If a has a Bounded instance then the wrapped instance also respects the reversed ordering by exchanging the values of minBound and maxBound.
>>> minBound :: Int
-9223372036854775808
>>> minBound :: Down Int
Down 9223372036854775807
All other instances of Down a behave as they do for a. @since base-4.6.0.0
The Down type allows you to reverse sort order conveniently. A value of type Down a contains a value of type a (represented as Down a). If a has an Ord instance associated with it then comparing two values thus wrapped will give you the opposite of their normal sort order. This is particularly useful when sorting in generalised list comprehensions, as in: then sortWith by Down x
Down/right
The Down type allows you to reverse sort order conveniently. A value of type Down a contains a value of type a (represented as Down a). If a has an Ord instance associated with it then comparing two values thus wrapped will give you the opposite of their normal sort order. This is particularly useful when sorting in generalised list comprehensions, as in: then sortWith by Down x Provides Show and Read instances (since: 4.7.0.0).
The Down type allows you to reverse sort order conveniently. A value of type Down a contains a value of type a (represented as Down a). If a has an Ord instance associated with it then comparing two values thus wrapped will give you the opposite of their normal sort order. This is particularly useful when sorting in generalised list comprehensions, as in: then sortWith by Down x.
>>> compare True False
GT
>>> compare (Down True) (Down False)
LT
If a has a Bounded instance then the wrapped instance also respects the reversed ordering by exchanging the values of minBound and maxBound.
>>> minBound :: Int
-9223372036854775808
>>> minBound :: Down Int
Down 9223372036854775807
All other instances of Down a behave as they do for a.
Rounding mode to round towards zero.
This module defines instances Num, Real, Fractional, Floating and RealFrac of MPFR. Operations are rounded with RoundMode Down and computed with maximum precision of two operands or with the precision of the operand.
DOWN
Notification of child thread termination.
Move one step down from the current position.
Invert an Ordering (see Down).
Move down. Moves to rightmost immediate child. Returns Nothing iff at a leaf and thus no children exist.