VisualProf icon indicating copy to clipboard operation
VisualProf copied to clipboard

Package won't compile

Open meditans opened this issue 10 years ago • 5 comments

Hi, is this package still mantained? It fails when I try to compile the 0.5 version for hackage with a bunch of errors in the pretty.hs file.

Bests Carlo

meditans avatar Jan 29 '15 02:01 meditans

I have the same issue, such a shame for this awesome tool!

jimenezrick avatar Apr 23 '15 09:04 jimenezrick

Could you copy paste the errors here?

octopuscabbage avatar May 08 '15 01:05 octopuscabbage

[1 of 2] Compiling Pretty ( Pretty.hs, dist/build/visual-prof/visual-prof-tmp/Pretty.o )

Pretty.hs:663:23: Not in scope: data constructor ‘UnBangedTy’ Perhaps you meant one of these: ‘BangedTy’ (imported from Language.Haskell.Exts.Syntax), ‘A.BangedTy’ (imported from Language.Haskell.Exts.Annotated.Syntax), ‘UnpackedTy’ (imported from Language.Haskell.Exts.Syntax)

Pretty.hs:895:23: Not in scope: data constructor ‘PNeg’

Pretty.hs:937:23: Not in scope: data constructor ‘PExplTypeArg’

Pretty.hs:986:17: Not in scope: type constructor or class ‘GuardedAlts’ Perhaps you meant one of these: ‘GuardedRhs’ (imported from Language.Haskell.Exts.Syntax), ‘A.GuardedRhs’ (imported from Language.Haskell.Exts.Annotated.Syntax)

Pretty.hs:987:17: Not in scope: data constructor ‘UnGuardedAlt’ Perhaps you meant one of these: ‘UnGuardedRhs’ (imported from Language.Haskell.Exts.Syntax), ‘A.UnGuardedRhs’ (imported from Language.Haskell.Exts.Annotated.Syntax)

Pretty.hs:988:17: Not in scope: data constructor ‘GuardedAlts’ Perhaps you meant one of these: ‘GuardedRhss’ (imported from Language.Haskell.Exts.Syntax), ‘A.GuardedRhss’ (imported from Language.Haskell.Exts.Annotated.Syntax), ‘GuardedRhs’ (imported from Language.Haskell.Exts.Syntax)

Pretty.hs:990:17: Not in scope: type constructor or class ‘GuardedAlt’ Perhaps you meant one of these: ‘GuardedRhs’ (imported from Language.Haskell.Exts.Syntax), ‘A.GuardedRhs’ (imported from Language.Haskell.Exts.Annotated.Syntax)

Pretty.hs:991:17: Not in scope: data constructor ‘GuardedAlt’ Perhaps you meant one of these: ‘GuardedRhs’ (imported from Language.Haskell.Exts.Syntax), ‘A.GuardedRhs’ (imported from Language.Haskell.Exts.Annotated.Syntax)

Pretty.hs:1214:13: Not in scope: data constructor ‘A.IHead’ Perhaps you meant ‘A.DHead’ (imported from Language.Haskell.Exts.Annotated.Syntax)

Pretty.hs:1286:31: Not in scope: data constructor ‘A.IHead’ Perhaps you meant ‘A.DHead’ (imported from Language.Haskell.Exts.Annotated.Syntax)

Pretty.hs:1355:33: Not in scope: type constructor or class ‘A.GuardedAlts’ Perhaps you meant ‘A.GuardedRhs’ (imported from Language.Haskell.Exts.Annotated.Syntax)

Pretty.hs:1356:27: Not in scope: ‘sGuardedAlts’ Perhaps you meant ‘sGuardedRhs’ (imported from Language.Haskell.Exts.Annotated.Simplify)

Pretty.hs:1358:33: Not in scope: type constructor or class ‘A.GuardedAlt’ Perhaps you meant ‘A.GuardedRhs’ (imported from Language.Haskell.Exts.Annotated.Syntax)

Pretty.hs:1359:27: Not in scope: ‘sGuardedAlt’ Perhaps you meant ‘sGuardedRhs’ (imported from Language.Haskell.Exts.Annotated.Simplify)

Pretty.hs:1398:17: Not in scope: data constructor ‘A.CxParen’ Perhaps you meant one of these: ‘A.TyParen’ (imported from Language.Haskell.Exts.Annotated.Syntax), ‘A.Paren’ (imported from Language.Haskell.Exts.Annotated.Syntax), ‘A.PParen’ (imported from Language.Haskell.Exts.Annotated.Syntax)

lippling avatar Jun 19 '15 17:06 lippling

I have the same issue. It's reproducible. Apparently, Language.Haskell.Exts.Syntax changed in version 1.16.x of the haskell-src-exts package. It seems like the Syntax.hs file is a big copy-paste of their file with some hacks here and there.

nitrix avatar Aug 06 '15 02:08 nitrix

This project needs a stack.yaml with working resolver. This would guarantee correct compilation at all times.

nd2s avatar Jun 24 '16 14:06 nd2s