danstiner / hfmt

Format Haskell programs. Inspired by the gofmt utility.
MIT License
125 stars 14 forks source link

stack install hfmt fails on OSX #45

Open leoparis89 opened 5 years ago

leoparis89 commented 5 years ago
stack install hfmt
hfmt-0.2.3.1: configure
hfmt-0.2.3.1: build

--  While building package hfmt-0.2.3.1 using:
      /Users/levkowalski/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.4.0.1 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/levkowalski/.stack/global-project/.stack-work/logs/hfmt-0.2.3.1.log

    Configuring hfmt-0.2.3.1...
    Preprocessing library for hfmt-0.2.3.1..
    Building library for hfmt-0.2.3.1..
    [1 of 9] Compiling Language.Haskell.Format.Types ( src/Language/Haskell/Format/Types.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Language/Haskell/Format/Types.o )
    [2 of 9] Compiling Language.Haskell.Format.Internal ( src/Language/Haskell/Format/Internal.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Language/Haskell/Format/Internal.o )
    [3 of 9] Compiling Language.Haskell.Format.Stylish ( src/Language/Haskell/Format/Stylish.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Language/Haskell/Format/Stylish.o )
    [4 of 9] Compiling Language.Haskell.Format.HLint ( src/Language/Haskell/Format/HLint.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Language/Haskell/Format/HLint.o )
    [5 of 9] Compiling Language.Haskell.Source.Enumerator ( src/Language/Haskell/Source/Enumerator.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Language/Haskell/Source/Enumerator.o )

    /private/var/folders/tz/66szk1893l3bs6xp_s5jypxw0000gn/T/stack30942/hfmt-0.2.3.1/src/Language/Haskell/Source/Enumerator.hs:7:1: error:
        Could not find module ‘Conduit’
        Use -v to see a list of the files searched for.
      |
    7 | import           Conduit
      | ^^^^^^^^^^^^^^^^^^^^^^^^

install is failing on OSX 10.13.6

with

stack --version
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1
ghci --version
The Glorious Glasgow Haskell Compilation System, version 8.6.3

Anybody have a hint on how I can fix this ?

danstiner commented 5 years ago

What stack resolver are you using? I just tried and it installed fine on lts-13.10.

If you are trying to install this globally, the entire contents of ~/.stack/global-project/stack.yaml would be useful to see (secrets removed if any are present of course)