swarm-game / swarm

Resource gathering + programming game
Other
835 stars 53 forks source link

Look into upgrading from `FilePath` to `OsPath` #1389

Open byorgey opened 1 year ago

byorgey commented 1 year ago

Version 1.4.100.0 of the filepath package introduced a new abstract OsPath type. The new API is discussed here: https://hasufell.github.io/posts/2022-06-29-fixing-haskell-filepaths.html We should look into upgrading from the legacy FilePath = String type to the new OsPath type.

byorgey commented 1 year ago

I looked into this a bit and it looks like we will have to wait a bit until switching to an LTS version that includes a recent enough version of filepath. The yaml library also is still using FilePath.

byorgey commented 3 months ago

Update: we have switched away from stack, so the LTS version is irrelevant. It looks like cabal now chooses a recent enough version of filepath, so in theory we could upgrade. However, the yaml library is still using type FilePath = String.