Skip to content

Please add hackage revision with rio-prettyprint <0.1.4.0 #5963

Closed
@hamishmack

Description

@hamishmack

The latest version of stack (2.9.1) in hackage fails to build with cabal because the version of rio-prettyprint (recently released 0.1.4.0) chosen results in this error:

src/Stack/Build/Execute.hs:2174:57: error:
    Ambiguous occurrence ‘string’
    It could refer to
       either ‘Data.Attoparsec.Text.string’,
              imported from ‘Data.Attoparsec.Text’ at src/Stack/Build/Execute.hs:30:1-50
              (and originally defined in ‘attoparsec-0.14.4:Data.Attoparsec.Text.Internal’)
           or ‘RIO.PrettyPrint.string’,
              imported from ‘RIO.PrettyPrint’ at src/Stack/Build/Execute.hs:95:1-32
              (and originally defined in ‘Text.PrettyPrint.Leijen.Extended’)
     |
2174 |                 , char '(' >> num >> char ',' >> num >> string ")-(" >> num >> char ',' >> num >> char ')' >> return ()
     |                                                         ^^^^^^

Adding a hackage revision with upper bound rio-prettyprint <0.1.4.0 should resolve this.

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