Skip to content

Commit

Permalink
Add instance Ord Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Apr 19, 2024
1 parent 83b3a53 commit f9810c6
Showing 1 changed file with 12 additions and 1 deletion.
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

0 comments on commit f9810c6

Please sign in to comment.