tfausak / rattletrap

:car: Parse and generate Rocket League replays.
https://hackage.haskell.org/package/rattletrap
MIT License
147 stars 21 forks source link

Avoid ambiguous `List` import alias #294

Closed tfausak closed 8 months ago

tfausak commented 8 months ago

Closes https://github.com/tfausak/rattletrap/pull/292.

In future versions of GHC, List.List will be ambiguous because Data.List will start exporting List as a type alias for []. Rather than using CPP to solve this problem, this PR uses RList as the alias for the internal list type.

It might be a good idea to rename the type to something that doesn't collide with other names. Like perhaps Arr or Vec or something like that.