Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
fixes formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
meghfossa committed Jul 23, 2021
1 parent 9d31f88 commit 2c83794
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/Strategy/Elixir/MixTree.hs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ parseDepSCM = try parseDepHex <|> parseDepSCMGit <|> parseDepSCMOther
parseDepSCMOther :: Parser DepSCM
parseDepSCMOther = Other <$> takeWhileP (Just "OtherSCM") (/= ')')


-- | True if a version is not resolved in `MixDepResolved`, otherwise False.
-- This can happen, if dependencies are not retrieved or compiled.
missingResolvedVersions :: Map PackageName MixDepResolved -> Bool
Expand Down Expand Up @@ -336,7 +335,7 @@ toDependencyVersion dt = case parse parseConstraintExpr "" dt of
parseVerConstraint :: Parser VerConstraint
parseVerConstraint = do
operator <- whitespaceOrTab *> parseConstraintOperator <* whitespaceOrTab
versionText <- findVersionText <* whitespaceOrTab
versionText <- findVersionText <* whitespaceOrTab
case operator of
Just "==" -> pure $ CEq versionText
Just "=" -> pure $ CEq versionText
Expand All @@ -361,7 +360,6 @@ parseVerConstraint = do
findVersionText :: Parser Text
findVersionText = toText <$> some (alphaNumChar <|> char '.' <|> char '-' <|> char '*' <|> char '+')


-- | Parses [mix constraint expression](https://hexdocs.pm/elixir/1.12/Version.html).
parseConstraintExpr :: Parser VerConstraint
parseConstraintExpr = makeExprParser parseVerConstraint operatorTable
Expand Down
2 changes: 1 addition & 1 deletion src/Strategy/Mix.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import Discovery.Walk (
walk',
)
import Effect.Exec (Exec, Has)
import Effect.Logger (Logger (..))
import Effect.ReadFS (ReadFS)
import Effect.Logger (Logger(..))
import Graphing (Graphing)
import Path
import Strategy.Elixir.MixTree qualified as MixTree
Expand Down

0 comments on commit 2c83794

Please sign in to comment.