stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

Install fails due to Variable not in scope: (<>)

Open poneill opened this issue 3 years ago • 0 comments

I'm trying to install stylish-haskell using

cabal install stylish-haskell

which results in the long error message, the gist of which is:

    • Variable not in scope: (<>) :: IO () -> String -> IO a1
    • Perhaps you meant one of these:
        ‘<*>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘>>’ (imported from Prelude)
cabal: Leaving directory '/tmp/cabal-tmp-1019853/stylish-haskell-0.9.4.4'
cabal: Error: some packages failed to install:
stylish-haskell-0.9.4.4 failed during the building phase. The exception was:
ExitFailure 1

it seems that ghc is expecting (<>) to be present in the prelude and not finding it [?]

System specs:

  • The Glorious Glasgow Haskell Compilation System, version 8.0.2
  • cabal-install version 1.24.0.2
  • base==4.9.1.0

I'm not sure if this is actually a stylish-haskell bug rather than a cabal bug, but in any case thanks in advance.

poneill avatar Oct 28 '20 06:10 poneill