Skip to content

Commit

Permalink
wb | locli: adjust report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeier committed Sep 15, 2023
1 parent b261501 commit 540eca5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bench/locli/src/Cardano/Analysis/API/Context.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE GeneralisedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE UndecidableInstances #-}
module Cardano.Analysis.API.Context (module Cardano.Analysis.API.Context) where
Expand Down Expand Up @@ -98,9 +100,10 @@ data GeneratorProfile

plutusLoopScript :: GeneratorProfile -> Maybe Text
plutusLoopScript GeneratorProfile{plutusMode, plutusAutoMode, plutus}
| fromMaybe False
((&&) <$> plutusAutoMode <*> plutusMode) = Just $ T.pack "Loop"
| otherwise = ppScript `fmap` plutus
| Just True <- (&&) <$> plutusAutoMode <*> plutusMode
= Just "Loop"
| otherwise
= ppScript `fmap` plutus


newtype Commit = Commit { unCommit :: Text } deriving newtype (Eq, Show, FromJSON, ToJSON, NFData)
Expand Down

0 comments on commit 540eca5

Please sign in to comment.