Skip to content

Commit 79ef3c4

Browse files
committed
Derive Functor instance for SimResult
1 parent 55bcd81 commit 79ef3c4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
# Circa 2022.10.19 (pre release)
4+
5+
- Added `Functor` instance for `SimResult` type
6+
37
# Circa 2022.10.03 (pre release)
48

59
- Added `Semigroup` and `Monoid` instances for `STM` and `WrappedSTM` monads

io-sim/src/Control/Monad/IOSim/Types.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE CPP #-}
2+
{-# LANGUAGE DeriveFunctor #-}
23
{-# LANGUAGE DeriveGeneric #-}
34
{-# LANGUAGE DerivingStrategies #-}
45
{-# LANGUAGE DerivingVia #-}
@@ -668,7 +669,7 @@ data SimResult a
668669
| MainException !Time SomeException ![Labelled ThreadId]
669670
| Deadlock !Time ![Labelled ThreadId]
670671
| Loop
671-
deriving Show
672+
deriving (Show, Functor)
672673

673674

674675
type SimTrace a = Trace.Trace (SimResult a) SimEvent

0 commit comments

Comments
 (0)