lukexi / halive

Live recompiler for Haskell
BSD 2-Clause "Simplified" License
263 stars 18 forks source link

Unable to `stack install` with GHC 8.6.3 #33

Closed dnjstrom closed 5 years ago

dnjstrom commented 5 years ago
❯ stack install halive
halive-0.1.3: configure
halive-0.1.3: build

--  While building package halive-0.1.3 using:
      /Users/daniel/.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/daniel/Code/ppdd/.stack-work/logs/halive-0.1.3.log

    Configuring halive-0.1.3...
    Preprocessing library for halive-0.1.3..
    Building library for halive-0.1.3..
    [1 of 6] Compiling Halive.Concurrent ( src/Halive/Concurrent.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Halive/Concurrent.o )
    [2 of 6] Compiling Halive.FileListener ( src/Halive/FileListener.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Halive/FileListener.o )

    /private/var/folders/f0/s7rcj7gx6_7936b8mjbd23xr0000gn/T/stack73810/halive-0.1.3/src/Halive/FileListener.hs:43:5: error:
        • The constructor ‘Modified’ should have 3 arguments, but has been given 2
        • In the pattern: Modified path _
          In a case alternative: Modified path _ -> path == fileName
          In the expression:
            case event of
              Modified path _ -> path == fileName
              _ -> False
       |
    43 |     Modified path _ -> path == fileName
       |     ^^^^^^^^^^^^^^^

    /private/var/folders/f0/s7rcj7gx6_7936b8mjbd23xr0000gn/T/stack73810/halive-0.1.3/src/Halive/FileListener.hs:79:5: error:
        • The constructor ‘Modified’ should have 3 arguments, but has been given 2
        • In the pattern: Modified path _
          In a case alternative:
              Modified path _
                -> null fileTypes || drop 1 (takeExtension path) `elem` fileTypes
          In the expression:
            case event of
              Modified path _
                -> null fileTypes || drop 1 (takeExtension path) `elem` fileTypes
              _ -> False
       |
    79 |     Modified path _ -> null fileTypes || drop 1 (takeExtension path) `elem` fileTypes
       |     ^^^^^^^^^^^^^^^

❯ stack --version
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1

❯ stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.6.3

❯ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.3
BuildVersion:   18D109

Let me know if any other information would be helpful! 🙂

lukexi commented 5 years ago

Hi Daniel! I pushed some commits to halive master that get it up and running with 8.63, just need to find a moment to make a new release.

On Feb 20, 2019, at 9:52 AM, Daniel Ström notifications@github.com wrote:

❯ stack install halive halive-0.1.3: configure halive-0.1.3: build

-- While building package halive-0.1.3 using: /Users/daniel/.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/daniel/Code/ppdd/.stack-work/logs/halive-0.1.3.log

Configuring halive-0.1.3...
Preprocessing library for halive-0.1.3..
Building library for halive-0.1.3..
[1 of 6] Compiling Halive.Concurrent ( src/Halive/Concurrent.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Halive/Concurrent.o )
[2 of 6] Compiling Halive.FileListener ( src/Halive/FileListener.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Halive/FileListener.o )

/private/var/folders/f0/s7rcj7gx6_7936b8mjbd23xr0000gn/T/stack73810/halive-0.1.3/src/Halive/FileListener.hs:43:5: error:
    • The constructor ‘Modified’ should have 3 arguments, but has been given 2
    • In the pattern: Modified path _
      In a case alternative: Modified path _ -> path == fileName
      In the expression:
        case event of
          Modified path _ -> path == fileName
          _ -> False
   |
43 |     Modified path _ -> path == fileName
   |     ^^^^^^^^^^^^^^^

/private/var/folders/f0/s7rcj7gx6_7936b8mjbd23xr0000gn/T/stack73810/halive-0.1.3/src/Halive/FileListener.hs:79:5: error:
    • The constructor ‘Modified’ should have 3 arguments, but has been given 2
    • In the pattern: Modified path _
      In a case alternative:
          Modified path _
            -> null fileTypes || drop 1 (takeExtension path) `elem` fileTypes
      In the expression:
        case event of
          Modified path _
            -> null fileTypes || drop 1 (takeExtension path) `elem` fileTypes
          _ -> False
   |
79 |     Modified path _ -> null fileTypes || drop 1 (takeExtension path) `elem` fileTypes
   |     ^^^^^^^^^^^^^^^

❯ stack --version Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1

❯ stack ghc -- --version The Glorious Glasgow Haskell Compilation System, version 8.6.3

❯ sw_vers ProductName: Mac OS X ProductVersion: 10.14.3 BuildVersion: 18D109 Let me know if any other information would be helpful! 🙂

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

lukexi commented 5 years ago

Ok I pushed up a new version 0.1.6 to cabal, let me know if that fixes it!

On Feb 20, 2019, at 9:52 AM, Daniel Ström notifications@github.com wrote:

❯ stack install halive halive-0.1.3: configure halive-0.1.3: build

-- While building package halive-0.1.3 using: /Users/daniel/.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/daniel/Code/ppdd/.stack-work/logs/halive-0.1.3.log

Configuring halive-0.1.3...
Preprocessing library for halive-0.1.3..
Building library for halive-0.1.3..
[1 of 6] Compiling Halive.Concurrent ( src/Halive/Concurrent.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Halive/Concurrent.o )
[2 of 6] Compiling Halive.FileListener ( src/Halive/FileListener.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Halive/FileListener.o )

/private/var/folders/f0/s7rcj7gx6_7936b8mjbd23xr0000gn/T/stack73810/halive-0.1.3/src/Halive/FileListener.hs:43:5: error:
    • The constructor ‘Modified’ should have 3 arguments, but has been given 2
    • In the pattern: Modified path _
      In a case alternative: Modified path _ -> path == fileName
      In the expression:
        case event of
          Modified path _ -> path == fileName
          _ -> False
   |
43 |     Modified path _ -> path == fileName
   |     ^^^^^^^^^^^^^^^

/private/var/folders/f0/s7rcj7gx6_7936b8mjbd23xr0000gn/T/stack73810/halive-0.1.3/src/Halive/FileListener.hs:79:5: error:
    • The constructor ‘Modified’ should have 3 arguments, but has been given 2
    • In the pattern: Modified path _
      In a case alternative:
          Modified path _
            -> null fileTypes || drop 1 (takeExtension path) `elem` fileTypes
      In the expression:
        case event of
          Modified path _
            -> null fileTypes || drop 1 (takeExtension path) `elem` fileTypes
          _ -> False
   |
79 |     Modified path _ -> null fileTypes || drop 1 (takeExtension path) `elem` fileTypes
   |     ^^^^^^^^^^^^^^^

❯ stack --version Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1

❯ stack ghc -- --version The Glorious Glasgow Haskell Compilation System, version 8.6.3

❯ sw_vers ProductName: Mac OS X ProductVersion: 10.14.3 BuildVersion: 18D109 Let me know if any other information would be helpful! 🙂

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

dnjstrom commented 5 years ago

Worked like a charm! Thanks for tending to it so quickly; much appreciated! 🎉