{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibi3qgb5np24nezmbozoj5bkvfxep6sqcjlmixcopcnzii2nlabx4",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mmh3lub4ntm2"
},
"path": "/t/empty-list-without-list-literals/14147#post_1",
"publishedAt": "2026-05-22T13:49:17.000Z",
"site": "https://discourse.haskell.org",
"textContent": "This is my situation.\nI want to make this rule:\n\n\n {-# RULES \"++ 1 element\" forall x xs. (x:[]) ++ xs = x:xs #-}\n\n\nHowever, I have `OverloadedLists` enabled, so this becomes.\n\n\n {-# RULES \"++ 1 element\" forall x xs. (x:(fromList [])) ++ xs = x:xs #-}\n\n\nIs there a way to avoid this automatic `fromList`? Also, I’d like to be able to just say that a list is normal for readability.",
"title": "Empty list without list literals"
}