Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 711b57a

Browse files
Cleaning
1 parent 6800673 commit 711b57a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Copilot/Visualize.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module Copilot.Visualize
1212

1313
-- External imports
1414
import Data.Aeson (ToJSON (..))
15+
import Data.Bifunctor (second)
1516
import Data.List (find, transpose)
1617
import Data.Maybe (fromMaybe, isJust, isNothing)
1718
import GHC.Generics (Generic)
@@ -107,8 +108,7 @@ mkTraceValue x = TraceValue (showValue x) (isNothing x)
107108

108109
-- | Compute the list of values associated to observers.
109110
interpObserversOpt :: Spec -> ExecTrace -> [(String, [Maybe Output])]
110-
interpObserversOpt _spec e =
111-
map (\(n, os) -> (n, map Just os)) (interpObservers e)
111+
interpObserversOpt _spec = map (second (map Just)) . interpObservers
112112

113113
-- | Compute the list of values associated to triggers and their arguments.
114114
--

0 commit comments

Comments
 (0)