Skip to content

Conversation

@andreabedini
Copy link
Member

• Import exeExtension from Distribution.Simple.BuildPaths to determine
correct executable naming by platform
• Extract platform information from toolchain configuration during build
orchestration
• Apply platform-specific file extension (e.g., .exe on Windows) when
constructing executable paths in build output
• Refactor variable naming for clarity (exe → exeName) to distinguish
filename base from full executable path
• Normalize import formatting for consistency

@hasufell
Copy link
Member

src\Distribution\Client\ProjectOrchestration.hs:551:34: error: [GHC-88464]
    Variable not in scope:
      exeExtension :: Distribution.System.Platform -> String
    |
551 |         , let exe = exeName <.>  exeExtension platform
    |                                  ^^^^^^^^^^^^

@hasufell
Copy link
Member

I made it compile with:

import Distribution.Simple.BuildPaths (exeExtension)

  • Import exeExtension from Distribution.Simple.BuildPaths to determine
  correct executable naming by platform
  • Extract platform information from toolchain configuration during build
  orchestration
  • Apply platform-specific file extension (e.g., .exe on Windows) when
  constructing executable paths in build output
  • Refactor variable naming for clarity (exe → exeName) to distinguish
  filename base from full executable path
  • Normalize import formatting for consistency
@hasufell hasufell force-pushed the wip/andrea/add-executable-extension branch from 9d6fb6a to 2309d2c Compare November 21, 2025 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants