Skip to content

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

@kdd21

Description

@kdd21

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions