Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed #182

Open
fish4terrisa-MSDSM opened this issue May 6, 2022 · 3 comments
Open

Build failed #182

fish4terrisa-MSDSM opened this issue May 6, 2022 · 3 comments

Comments

@fish4terrisa-MSDSM
Copy link

src/Language/Rust/AST.hs:29:36: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’)
|
29 | pPrint (Lifetime s) = text "'" <> text s
| ^^

src/Language/Rust/AST.hs:89:32: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’)
|
89 | pPrint (Stmt e) = pPrint e <> text ";"
| ^^

src/Language/Rust/AST.hs:94:11: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’)
|
94 | ] <> text ";"
| ^^

src/Language/Rust/AST.hs:96:21: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’)
|
96 | [ text "#[" <> text attr <> text "]" | Attribute attr <- attrs ] ++ [pPrint k]
| ^^

src/Language/Rust/AST.hs:96:34: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’)
|
96 | [ text "#[" <> text attr <> text "]" | Attribute attr <- attrs ] ++ [pPrint k]
| ^^

src/Language/Rust/AST.hs:112:21: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’)
|
112 | [ text "#[" <> text attr <> text "]" | Attribute attr <- attrs ] ++ | ^^
src/Language/Rust/AST.hs:112:34: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 112 | [ text "#[" <> text attr <> text "]" | Attribute attr <- attrs ] ++
| ^^
src/Language/Rust/AST.hs:113:66: error: Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24 (and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’, imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’) |
113 | [(if vis == Public then zeroWidthText "pub " else empty) <> pPrint k] | ^^
src/Language/Rust/AST.hs:136:11: error:
Precedence parsing error cannot mix ‘<+>’ [infixl 6] and ‘Prelude.<>’ [infixr 6] in the same infix expression
| 136 | [ hsep (map pPrint attrs) <+> text "fn" <+> text nm <> text "("
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Language/Rust/AST.hs:136:61: error: Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24 (and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’, imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’) |
136 | [ hsep (map pPrint attrs) <+> text "fn" <+> text nm <> text "(" | ^^
src/Language/Rust/AST.hs:145:11: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 145 | ] <> text ";"
| ^^
src/Language/Rust/AST.hs:148:24: error: Precedence parsing error
cannot mix ‘<+>’ [infixl 6] and ‘Prelude.<>’ [infixr 6] in the same infix expression |
148 | nest 4 (vcat [ text "pub" <+> text field <+> text ":" <+> pPrint ty <> text "," | (field, ty) <- fields ]) $+$
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Language/Rust/AST.hs:148:77: error: Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24 (and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’, imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’) |
148 | nest 4 (vcat [ text "pub" <+> text field <+> text ":" <+> pPrint ty <> text "," | (field, ty) <- fields ]) $+$
| ^^
src/Language/Rust/AST.hs:155:25: error: Precedence parsing error
cannot mix ‘<+>’ [infixl 6] and ‘Prelude.<>’ [infixr 6] in the same infix expression |
155 | pPrint (Use path) = text "use" <+> text path <> text ";" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Language/Rust/AST.hs:155:50: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 155 | pPrint (Use path) = text "use" <+> text path <> text ";"
| ^^
src/Language/Rust/AST.hs:158:36: error: Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24 (and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’, imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’) |
158 | nest 4 (vcat [ pPrint enum <> text "," | enum <- enums ]) $+$ | ^^
src/Language/Rust/AST.hs:164:32: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 164 | , text "clone" <> parens (text "&self")
| ^^
src/Language/Rust/AST.hs:180:11: error: Precedence parsing error
cannot mix ‘<+>’ [infixl 6] and ‘Prelude.<>’ [infixr 6] in the same infix expression |
180 | [ text "fn" <+> text nm <> text "(" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Language/Rust/AST.hs:180:33: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 180 | [ text "fn" <+> text nm <> text "("
| ^^
src/Language/Rust/AST.hs:185:11: error: Precedence parsing error
cannot mix ‘<+>’ [infixl 6] and ‘Prelude.<>’ [infixr 6] in the same infix expression |
185 | , text ")" <+> (if ret == TypeName "()" then empty else text "->" <+> pPrint ret) <> text ";"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Language/Rust/AST.hs:185:91: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 185 | , text ")" <+> (if ret == TypeName "()" then empty else text "->" <+> pPrint ret) <> text ";" | ^^
src/Language/Rust/AST.hs:193:11: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 193 | ] <> text ";"
| ^^
src/Language/Rust/AST.hs:305:62: error: Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24 (and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’, imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’) |
305 | go pos _ (Index arr idx) = cat [go (left pos) 13 arr <> text "[", nest 4 (go RightExpr 0 idx), text "]"]
| ^^
src/Language/Rust/AST.hs:311:40: error: Precedence parsing error
cannot mix ‘Prelude.<>’ [infixr 6] and ‘<+>’ [infixl 6] in the same infix expression |
311 | go _ _ (RepeatArray el size) = text "[" <> go RightExpr 0 el <> text ";" <+> go RightExpr 0 size <> text "]"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Language/Rust/AST.hs:311:40: error:
Precedence parsing error cannot mix ‘<+>’ [infixl 6] and ‘Prelude.<>’ [infixr 6] in the same infix expression | 311 | go _ _ (RepeatArray el size) = text "[" <> go RightExpr 0 el <> text ";" <+> go RightExpr 0 size <> text "]" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Language/Rust/AST.hs:311:49: error: Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’, imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’) |
311 | go _ _ (RepeatArray el size) = text "[" <> go RightExpr 0 el <> text ";" <+> go RightExpr 0 size <> text "]"
| ^^
src/Language/Rust/AST.hs:311:70: error: Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24 (and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’, imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’) |
311 | go _ _ (RepeatArray el size) = text "[" <> go RightExpr 0 el <> text ";" <+> go RightExpr 0 size <> text "]"
| ^^
src/Language/Rust/AST.hs:311:106: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’) |
311 | go _ _ (RepeatArray el size) = text "[" <> go RightExpr 0 el <> text ";" <+> go RightExpr 0 size <> text "]"
| ^^
src/Language/Rust/AST.hs:314:47: error:
Precedence parsing error cannot mix ‘Prelude.<>’ [infixr 6] and ‘<+>’ [infixl 6] in the same infix expression
| 314 | : punctuate (text ",") ([ nest 4 (text name <> text ":" <+> go RightExpr 0 val) | (name, val) <- fields ] ++ maybe [] (\b -> [ text ".." <> go RightExpr 0 b ]) base) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Language/Rust/AST.hs:314:57: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 314 | : punctuate (text ",") ([ nest 4 (text name <> text ":" <+> go RightExpr 0 val) | (name, val) <- fields ] ++ maybe [] (\b -> [ text ".." <> go RightExpr 0 b ]) base) | ^^
src/Language/Rust/AST.hs:314:150: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 314 | : punctuate (text ",") ([ nest 4 (text name <> text ":" <+> go RightExpr 0 val) | (name, val) <- fields ] ++ maybe [] (\b -> [ text ".." <> go RightExpr 0 b ]) base)
| ^^
src/Language/Rust/AST.hs:318:34: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 318 | ( go (left pos) 14 f <> text "("
| ^^
src/Language/Rust/AST.hs:323:37: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’)
|
323 | ( go (left pos) 13 self <> text "." <> pPrint f <> text "("
| ^^

src/Language/Rust/AST.hs:323:49: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24 (and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’, imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 323 | ( go (left pos) 13 self <> text "." <> pPrint f <> text "("
| ^^ src/Language/Rust/AST.hs:323:61: error: Ambiguous occurrence ‘<>’ It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24 (and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’, imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’) |
323 | ( go (left pos) 13 self <> text "." <> pPrint f <> text "("
| ^^
src/Language/Rust/AST.hs:329:16: error:
Precedence parsing error
cannot mix ‘Prelude.<>’ [infixr 6] and ‘<+>’ [infixl 6] in the same infix expression
|
329 | in text "|" <> args' <> text "|" <+> go RightExpr 0 body
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Language/Rust/AST.hs:329:25: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 329 | in text "|" <> args' <> text "|" <+> go RightExpr 0 body
| ^^
src/Language/Rust/AST.hs:329:34: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’, imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’) | 329 | in text "|" <> args' <> text "|" <+> go RightExpr 0 body
| ^^
src/Language/Rust/AST.hs:330:82: error: Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37
(and originally defined in ‘Text.PrettyPrint.HughesPJ’)
|
330 | go pos d (Member obj field) = maybeParens (d > 13) (go (left pos) 13 obj <> text "." <> pPrint field)
| ^^

src/Language/Rust/AST.hs:330:94: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 330 | go pos d (Member obj field) = maybeParens (d > 13) (go (left pos) 13 obj <> text "." <> pPrint field) | ^^
src/Language/Rust/AST.hs:378:57: error:
Ambiguous occurrence ‘<>’ It could refer to
either ‘Prelude.<>’, imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’) or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 378 | optLabel = maybe empty (\ label -> pPrint label <> text ":")
| ^^
src/Language/Rust/AST.hs:380:55: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Language/Rust/AST.hs:1:8-24
(and originally defined in ‘GHC.Base’)
or ‘Text.PrettyPrint.HughesPJClass.<>’,
imported from ‘Text.PrettyPrint.HughesPJClass’ at src/Language/Rust/AST.hs:5:1-37 (and originally defined in ‘Text.PrettyPrint.HughesPJ’)
| 380 | unary d n op e = maybeParens (d > n) (text op <> go RightExpr n e)
| ^^
cabal: Leaving directory '.'
cabal: Error: some packages failed to install:
corrode-0.1.0.0-7JByiBhjcJ4AiUKajiokjH failed during the building phase. The
exception was:
ExitFailure 1

@remdragon
Copy link

I'm getting what appear to be the same errors.

In order to get this far, I had to modify corrode.cabal and remove "<0.7" from language-c, don't know if this is related to the errors. My system appears to be using language-c 0.9.1

@stroucki
Copy link

stroucki commented Mar 1, 2024

It failed for me with higher language-c.

In any case, the last mod to this repo was 7 years ago. Supposing you could ever get it to compile, would the rust output really be of current rust?

@tarcieri
Copy link

tarcieri commented Aug 9, 2024

I got it to build after a lot of trial and error:

I used the haskell:8.2.2 Docker image from Docker Hub as a base.

I had to constrain markdown-unlit to use 0.4.1.

I should probably make a Dockerfile for it and push it up as a repeatable process, but otherwise it works!

root@84bdcf7ccaac:~/corrode# corrode
No .c / .hc / .h source file given

Edit: pushed up a working Dockerfile here: tarcieri@f8679ee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants