Skip to content

HTF installation fails on Windows 11 #136

Description

@Darkleynad7

I tried to clean install Haskell and HTF on a Windows 11 machine for a university course. I followed the instructions to install all the haskell components with GHCup, and then I ran cabal install HTF to install HTF, however all my installation attempts fail with

Failed to build HTF-0.15.0.2.
Build log (
C:\cabal\logs\ghc-9.0.2\HTF-0.15.0.2-545533d474ef200444e27a66657afdafc1f06312.log
):
Preprocessing library for HTF-0.15.0.2..
Building library for HTF-0.15.0.2..

Test\Framework\HUnitWrapper.hs:1:7: error:
    lexical error in pragma at character '1'
  |
1 | {-# OPTIONS_GHC -cpp -pgmP "cpphs --layout --hashes --cpp" #-}
  |       ^

Test\Framework\Preprocessor.hs:1:7: error:
    lexical error in pragma at character '1'
  |
1 | {-# OPTIONS_GHC -cpp -pgmP "cpphs --layout --hashes --cpp" #-}
  |       ^
Error: cabal-3.10.3.0.exe: Failed to build HTF-0.15.0.2 (which is required by
exe:htfpp from HTF-0.15.0.2). See the build log above for details.

I have tried multiple versions of cabal and ghc but none seem to work. Any suggestions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions