Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instance Ord Timeout #415

Merged
merged 2 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
Changes
=======

Unreleased
--------------

_YYYY-MM-DD_

* Performance improvements
([#389](https://github.com/UnkindPartition/tasty/pull/389),
[#390](https://github.com/UnkindPartition/tasty/pull/390)).
* Progress reporting in Emacs: use `\r` instead of ANSI escape sequences
([#393](https://github.com/UnkindPartition/tasty/pull/393)).
* Console reporter: fix unintended change to `foldHeading`
([#396](https://github.com/UnkindPartition/tasty/pull/396)).
* Prune empty test subtrees from `TestTree`
([#403](https://github.com/UnkindPartition/tasty/pull/403)).
* Add `instance Eq Timeout` and `instance Ord Timeout`
([#415](https://github.com/UnkindPartition/tasty/pull/415)).

Version 1.5
---------------

Expand Down
13 changes: 12 additions & 1 deletion core/Test/Tasty/Options/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,18 @@ data Timeout
-- @\"0.5m\"@), so that we can print it back. 'Integer' is the number of
-- microseconds.
| NoTimeout
deriving (Show, Typeable)
deriving
( Eq
-- ^ Auto-derived instance, just to allow storing in a 'Map' and such.
--
-- @since 1.5.1
, Ord
-- ^ Auto-derived instance, just to allow storing in a 'Map' and such.
--
-- @since 1.5.1
, Show
, Typeable
)

instance IsOption Timeout where
defaultValue = NoTimeout
Expand Down
Loading