Skip to content

Consider removing FromList instance for NonEmpty #264

@Martoon-00

Description

@Martoon-00

In #238 I have added FromList typeclass with fromList that behaves very similar to GHC.Exts.IsList.fromList.

And it is defined for NonEmpty too. This means that the following code:

a = fromList [] :: NonEmpty a

as well as the following code:

{-# LANGUAGE OverloadedLists #-}

a = [] :: NonEmpty a

will fail. However, unlike in IsList, currently we will have a callstack attached to the error.

We should consider pros and cons of removing this instance.

Metadata

Metadata

Assignees

Labels

type:breakingBreaking change (removal, renaming, semantic change, etc.)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions