3 ms·
GHC has the `IsList` type class which basically allows overloading the list syntax to create any other sequential container. It still uses linked lists as an i
by mbrock 10y ago
GHC has the `IsList` type class which basically allows overloading the list syntax to create any other sequential container.
It still uses linked lists as an intermediate representation (the type class consists of a function `fromList :: [a] -> t a`) but since lazy lists are generators this is quite sensible.