Skip to content

Commit 765569b

Browse files
committed
fmt
1 parent af3a583 commit 765569b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Strategy/Node/Pnpm/Types.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ import Data.Char (isDigit)
4343
import Data.HashMap.Strict qualified as HashMap
4444
import Data.Map (Map)
4545
import Data.Map qualified as Map
46-
import Text.Read (readMaybe)
4746
import Data.Set qualified as Set
4847
import Data.String.Conversion (toString)
4948
import Data.Text (Text)
5049
import Data.Text qualified as Text
5150
import Data.Yaml (Object, Parser, (.!=), (.:), (.:?))
5251
import Data.Yaml qualified as Yaml
5352
import DepTypes (DepEnvironment)
53+
import Text.Read (readMaybe)
5454

5555
-- | Pnpm Lockfile
5656
--
@@ -344,8 +344,8 @@ classifyVersion (TextLike ver) =
344344
Just v
345345
| v >= 1 && v <= 5 -> pure VersionV4Or5
346346
| v >= 6 && v <= 8 -> pure VersionV678
347-
| v >= 9 -> pure VersionV9
348-
| otherwise -> fail $ "unsupported lockfileVersion: " <> show ver
347+
| v >= 9 -> pure VersionV9
348+
| otherwise -> fail $ "unsupported lockfileVersion: " <> show ver
349349

350350
-- | Parse the shared base fields (importers + packages) common to all versions.
351351
parseBaseLockfile :: TextLike -> Object -> Parser PnpmLockfileBase

src/Strategy/Node/Pnpm/V4_8.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ import Strategy.Node.Pnpm.Types (BuildGraphConfig (..), LabelingMode (LabelingOf
3535
parseAtKey :: Bool -> Text -> Maybe (Text, Text)
3636
parseAtKey slashRequired pkgKey = do
3737
txt <- case Text.stripPrefix "/" pkgKey of
38-
Nothing | slashRequired -> Nothing
39-
Nothing -> Just pkgKey
40-
Just txt -> Just txt
38+
Nothing | slashRequired -> Nothing
39+
Nothing -> Just pkgKey
40+
Just txt -> Just txt
4141
let (nameAndVersion, peerDepInfo) = Text.breakOn "(" txt
4242
let (nameWithSlash, version) = Text.breakOnEnd "@" nameAndVersion
4343
case (Text.stripSuffix "@" nameWithSlash, version) of

0 commit comments

Comments
 (0)