Skip to content

Commit

Permalink
Avoid Data.List.singleton (to avoid CPP for 8.10.7)
Browse files Browse the repository at this point in the history
  • Loading branch information
adetokunbo committed Feb 5, 2024
1 parent 8ef4995 commit 4881c67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/System/MemInfo/Print.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module System.MemInfo.Print (
styleOutput,
) where

import Data.List (singleton)
import qualified Data.Text as Text
import Fmt (
build,
Expand Down Expand Up @@ -212,4 +211,4 @@ outputOf isAccurate style usages =
in case overall of
Nothing -> headerAndRows
Just _ | not isAccurate -> headerAndRows
Just o -> headerAndRows <> singleton o
Just o -> headerAndRows <> [o]

0 comments on commit 4881c67

Please sign in to comment.