Skip to content

Commit

Permalink
Use -XRecordWildCards
Browse files Browse the repository at this point in the history
As prompted to do so in review
  • Loading branch information
philderbeast committed Dec 12, 2023
1 parent fbe54ec commit fef7145
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cabal-install/src/Distribution/Client/InstallSymlink.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RecordWildCards #-}

-----------------------------------------------------------------------------

Expand Down Expand Up @@ -284,12 +285,7 @@ onSymlinkBinary
-- ^ Prompt action
-> Symlink
-> IO a
onSymlinkBinary
onMissing
onOverwrite
onNever
onPrompt
Symlink{overwritePolicy, publicBindir, privateBindir, publicName, privateName} = do
onSymlinkBinary onMissing onOverwrite onNever onPrompt Symlink{..} = do
ok <-
targetOkToOverwrite
(publicBindir </> publicName)
Expand Down

0 comments on commit fef7145

Please sign in to comment.