Skip to content

Commit

Permalink
Fix name-shadowing error in Setup.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano committed Aug 9, 2024
1 parent 13037df commit c3eaa0f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ sdlConfHook (description, buildInfo) flags = do
putStrLn "\ESC[34mGetting local build info\ESC[m"
localBuildInfo <- confHook simpleUserHooks (description, buildInfo) flags
let packageDescription = localPkgDescr localBuildInfo
library = fromJust $ library packageDescription
libraryBuildInfo = libBuildInfo library
localLibrary = fromJust $ library packageDescription
localLibraryBuildInfo = libBuildInfo localLibrary
putStrLn "\ESC[34mGetting current directory\ESC[m"
dir <- getCurrentDirectory
putStrLn "\ESC[34mAdding SDL include and lib directories: " ++ dir ++ "\ESC[m"
putStrLn $ "\ESC[34mAdding SDL include and lib directories: " ++ dir ++ "\ESC[m"
pure localBuildInfo {
localPkgDescr = packageDescription {
library = Just $ library {
libBuildInfo = libraryBuildInfo {
includeDirs = (dir ++ "/sdl2_win_mingw/include"):(includeDirs libraryBuildInfo),
extraLibDirs = (dir ++ "/sdl2_win_mingw/lib"):(extraLibDirs libraryBuildInfo)
library = Just $ localLibrary {
libBuildInfo = localLibraryBuildInfo {
includeDirs = (dir ++ "/sdl2_win_mingw/include"):(includeDirs localLibraryBuildInfo),
extraLibDirs = (dir ++ "/sdl2_win_mingw/lib"):(extraLibDirs localLibraryBuildInfo)
}
}
}
Expand Down

0 comments on commit c3eaa0f

Please sign in to comment.