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

Commit

Permalink
Formatting and graphing
Browse files Browse the repository at this point in the history
  • Loading branch information
skilly-lily committed Sep 28, 2021
1 parent 5252c81 commit f15980b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Graphing/Hydrate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import Data.Set qualified as Set
import Graphing (Graphing)
import Graphing qualified

-- | Given some 'Graphing', return a 'Graphing' where all successors
-- of each node are
-- | Given some 'Graphing a' with an instance of @Hydrateable a b@, update the
-- nodes such that all items (which are type @b@) of a node are copied down to
-- all of its successor nodes.
hydrateItems :: forall a b. Hydrateable a b => Graphing a -> Graphing a
hydrateItems gr = gr'
where
Expand Down
2 changes: 1 addition & 1 deletion src/Strategy/Node/YarnV1/YarnLock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ import Effect.Logger (
)
import Effect.ReadFS (ReadFS, ReadFSErr (FileParseError), readContentsText)
import Graphing (Graphing)
import Graphing.Hydrate (hydrateItems)
import Path (Abs, File, Path)
import Strategy.Node.Types (FlatDeps (..), NodePackage (..))
import Graphing.Hydrate (hydrateItems)
import Types (DependencyResults (DependencyResults), GraphBreadth (Complete))
import Yarn.Lock qualified as YL
import Yarn.Lock.Types qualified as YL
Expand Down
2 changes: 1 addition & 1 deletion src/Strategy/Node/YarnV2/YarnLock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import DepTypes
import Effect.ReadFS
import Graphing (Graphing)
import Graphing qualified
import Graphing.Hydrate (hydrateItems)
import Path
import Strategy.Node.Types (FlatDeps (..), NodePackage (..))
import Graphing.Hydrate (hydrateItems)
import Strategy.Node.YarnV2.Lockfile
import Strategy.Node.YarnV2.Resolvers
import Types (DependencyResults (..), GraphBreadth (Complete))
Expand Down

0 comments on commit f15980b

Please sign in to comment.