Skip to content

Commit

Permalink
clean up lens
Browse files Browse the repository at this point in the history
  • Loading branch information
elrikdante committed Feb 26, 2018
1 parent 6636555 commit e8c53a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Stack/Types/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1199,11 +1199,8 @@ platformOnlyRelDir = do
parseRelDir (Distribution.Text.display platform ++ platformVariantSuffix platformVariant)

-- | Directory containing immutable cache

immutableDir :: (MonadThrow m, MonadReader env m, HasEnvConfig env) => m (Path Abs Dir)
immutableDir = do
root <- view stackRootL
return $ root </> $(mkRelDir "immutable")
immutableDir = liftM (</> $(mkRelDir "immutable")) (view stackRootL)

-- | Directory containing snapshots
snapshotsDir :: (MonadReader env m, HasEnvConfig env, MonadThrow m) => m (Path Abs Dir)
Expand Down

0 comments on commit e8c53a8

Please sign in to comment.