Skip to content

Avoid Data.List.init and Data.List.last #194

@Bodigrim

Description

@Bodigrim

Once haskell/core-libraries-committee#292 is implemented,

commasOr [] = ""
commasOr [m] = m
commasOr ms = commaSep (init ms) ++ " " ++ msgOr ++ " " ++ last ms

will raise a warning.

Not urgent and not a blocker (I can relax warning settings in Hadrian to pass GHC build), just heads up. Happy to prepare a patch, if it helps.

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