Skip to content

Commit

Permalink
Reformatting, for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Nov 13, 2023
1 parent 99fd135 commit ff21030
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Stack/Types/Dependency.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ module Stack.Types.Dependency
, cabalExeToStackDep
) where

import qualified Distribution.PackageDescription as Cabal
import Distribution.Types.VersionRange ( VersionRange )
import Stack.Prelude
import Stack.Types.Version ( intersectVersionRanges )
import qualified Distribution.PackageDescription as Cabal

-- | The value for a map from dependency name. This contains both the version
-- range and the type of dependency, and provides a semigroup instance.
Expand All @@ -36,6 +36,8 @@ instance Semigroup DepType where
AsBuildTool <> x = x

cabalToStackDep :: Cabal.Dependency -> DepValue
cabalToStackDep (Cabal.Dependency _ verRange _libNameSet) = DepValue{dvVersionRange = verRange, dvType=AsLibrary}
cabalToStackDep (Cabal.Dependency _ verRange _libNameSet) =
DepValue{dvVersionRange = verRange, dvType = AsLibrary}
cabalExeToStackDep :: Cabal.ExeDependency -> DepValue
cabalExeToStackDep (Cabal.ExeDependency _ _name verRange) = DepValue{dvVersionRange = verRange, dvType=AsBuildTool}
cabalExeToStackDep (Cabal.ExeDependency _ _name verRange) =
DepValue{dvVersionRange = verRange, dvType = AsBuildTool}

0 comments on commit ff21030

Please sign in to comment.