Skip to content

Instantly share code, notes, and snippets.

@brailsmt
Created May 20, 2020 04:04
Show Gist options
  • Save brailsmt/f1511785d112dd31113114778c016ec2 to your computer and use it in GitHub Desktop.
Save brailsmt/f1511785d112dd31113114778c016ec2 to your computer and use it in GitHub Desktop.
stack install hdevtools errors
cwd: ~/dev/flycut (master u=)
[20200519 22:59:25|brailsmt]$ stack install hdevtools
Writing implicit global project config file to: /Users/brailsmt/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-15.13
hdevtools> configure
hdevtools> Configuring hdevtools-0.1.8.0...
hdevtools> build
hdevtools> Preprocessing executable 'hdevtools' for hdevtools-0.1.8.0..
hdevtools> Building executable 'hdevtools' for hdevtools-0.1.8.0..
hdevtools> [ 1 of 14] Compiling Daemonize
hdevtools> [ 2 of 14] Compiling GhcTypes
hdevtools> [ 3 of 14] Compiling FindSymbol
hdevtools> [ 4 of 14] Compiling Info
hdevtools>
hdevtools> /private/var/folders/g5/fsgmy01s4n5867dgr44yny3h0000gn/T/stack-730990abf8ecfaf0/hdevtools-0.1.8.0/src/Info.hs:89:14: error:
hdevtools> • Couldn't match type ‘GHC.GenLocated GHC.SrcSpan a0’
hdevtools> with ‘GHC.Pat TypecheckI’
hdevtools> Expected type: [GHC.LPat TypecheckI]
hdevtools> Actual type: [GHC.Located a0]
hdevtools> • In the expression:
hdevtools> listifySpans tcs (line, col) :: [GHC.LPat TypecheckI]
hdevtools> In an equation for ‘ps’:
hdevtools> ps = listifySpans tcs (line, col) :: [GHC.LPat TypecheckI]
hdevtools> In the expression:
hdevtools> do let tcs = GHC.tm_typechecked_source tcm
hdevtools> bs = ...
hdevtools> ....
hdevtools> bts <- mapM (getTypeLHsBind tcm) bs
hdevtools> ets <- mapM (getTypeLHsExpr tcm) es
hdevtools> pts <- mapM (getTypeLPat tcm) ps
hdevtools> ....
hdevtools> |
hdevtools> 89 | ps = listifySpans tcs (line, col) :: [GHC.LPat TypecheckI]
hdevtools> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hdevtools>
hdevtools> /private/var/folders/g5/fsgmy01s4n5867dgr44yny3h0000gn/T/stack-730990abf8ecfaf0/hdevtools-0.1.8.0/src/Info.hs:158:16: error:
hdevtools> • Couldn't match type ‘GHC.GenLocated
hdevtools> GHC.SrcSpan (GHC.Pat GHC.GhcTc)’
hdevtools> with ‘GHC.Pat TypecheckI’
hdevtools> Expected type: GHC.LPat TypecheckI
hdevtools> Actual type: GHC.GenLocated GHC.SrcSpan (GHC.Pat GHC.GhcTc)
hdevtools> • In the pattern: GHC.L spn pat
hdevtools> In an equation for ‘getTypeLPat’:
hdevtools> getTypeLPat _ (GHC.L spn pat)
hdevtools> = return $ Just (spn, TcHsSyn.hsPatType pat)
hdevtools> |
hdevtools> 158 | getTypeLPat _ (GHC.L spn pat) = return $ Just (spn, TcHsSyn.hsPatType pat)
hdevtools> | ^^^^^^^^^^^^^
hdevtools>
-- While building package hdevtools-0.1.8.0 using:
/Users/brailsmt/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.0.1.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
@brailsmt
Copy link
Author

Error when running stack install hdevtools.

OS version information:

cwd: ~/dev
[20200519 23:01:50|brailsmt]$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.4
BuildVersion:   19E287

@andrewguy9
Copy link

I have same issue.

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