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

Attempted build 1.2.2, got Ambiguous Occurance in Main.hs #19

Open
kdd21 opened this issue Jan 24, 2021 · 0 comments
Open

Attempted build 1.2.2, got Ambiguous Occurance in Main.hs #19

kdd21 opened this issue Jan 24, 2021 · 0 comments

Comments

@kdd21
Copy link

kdd21 commented Jan 24, 2021

Attempted to build under Ubuntu 20.10 on RPi. Haskell-platform installed via standard apt-get, tried to run "cabal install PortFusion" and it attempted, but produced the below to the log. I know almost nothing about Haskell, but it looks like it made a reasonable try but encountered some conflict with a library or other built-in?:

Configuring PortFusion-1.2.2...
Preprocessing executable 'PortFusion' for PortFusion-1.2.2..
Building executable 'PortFusion' for PortFusion-1.2.2..
[1 of 1] Compiling Main ( src/Main.hs, dist/build/PortFusion/PortFusion-tmp/Main.o )

src/Main.hs:121:84: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Main.hs:16:1-100
(and originally defined in ‘GHC.Base’)
or ‘Main.<>’, defined at src/Main.hs:55:71
|
121 | (<:) :: Show a => Socket -> a -> IO (); s <: a = s sendAll ((B.pack . show $! a) <> "\r\n")
| ^^

src/Main.hs:196:21: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Main.hs:16:1-100
(and originally defined in ‘GHC.Base’)
or ‘Main.<>’, defined at src/Main.hs:55:71
|
196 | build = OS <> " - " <> ARCH <> " [" <> TIMESTAMP <> "]"
| ^^

src/Main.hs:196:30: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Main.hs:16:1-100
(and originally defined in ‘GHC.Base’)
or ‘Main.<>’, defined at src/Main.hs:55:71
|
196 | build = OS <> " - " <> ARCH <> " [" <> TIMESTAMP <> "]"
| ^^

src/Main.hs:196:39: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Main.hs:16:1-100
(and originally defined in ‘GHC.Base’)
or ‘Main.<>’, defined at src/Main.hs:55:71
|
196 | build = OS <> " - " <> ARCH <> " [" <> TIMESTAMP <> "]"
| ^^

src/Main.hs:196:48: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Main.hs:16:1-100
(and originally defined in ‘GHC.Base’)
or ‘Main.<>’, defined at src/Main.hs:55:71
|
196 | build = OS <> " - " <> ARCH <> " [" <> TIMESTAMP <> "]"
| ^^

src/Main.hs:196:78: error:
Ambiguous occurrence ‘<>’
It could refer to
either ‘Prelude.<>’,
imported from ‘Prelude’ at src/Main.hs:16:1-100
(and originally defined in ‘GHC.Base’)
or ‘Main.<>’, defined at src/Main.hs:55:71
|
196 | build = OS <> " - " <> ARCH <> " [" <> TIMESTAMP <> "]"
| ^^
cabal: Failed to build PortFusion-1.2.2. See the build log above for details.

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

1 participant