Skip to content

Commit

Permalink
Fix Command Show instance
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed May 8, 2024
1 parent c3e66af commit 60e08dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/launcher/src/Cardano/Launcher.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ import Data.Text
import Data.Text.Class
( ToText (..)
)
import Data.Text.Lazy.Builder
( toLazyText
)
import Fmt
( Buildable (..)
, Builder
Expand Down Expand Up @@ -124,6 +127,7 @@ import UnliftIO.Process
)

import qualified Data.Text as T
import qualified Data.Text.Lazy as TL

-- | Represent a command to execute. Args are provided as a list where options
-- are expected to be prefixed with `--` or `-`. For example:
Expand All @@ -149,7 +153,7 @@ data Command = Command
} deriving (Generic)

instance Show Command where
show = show . build
show = TL.unpack . toLazyText . build

instance Eq Command where
a == b = build a == build b
Expand Down

0 comments on commit 60e08dd

Please sign in to comment.