Skip to content

Commit 987f183

Browse files
committed
Derive Functor instance for SimResult
1 parent 6bf9e0a commit 987f183

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)