Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long term stability #18

Open
anka-213 opened this issue Aug 26, 2023 · 1 comment
Open

Long term stability #18

anka-213 opened this issue Aug 26, 2023 · 1 comment

Comments

@anka-213
Copy link

If I want to write a Haskell program and have it compilable without changes 10 years from now, what would I need to do? What would be needed for that to be possible?

I'm guessing I would want some flags like -XHaskell98 or similar to explicitly tell the compiler what version of the haskell standard to use. Any other flags that would be helpful?

I would obviously want to minimize the number of external dependencies from hackage, since those frequently have breaking changes. Although setting a max version on them in the cabal file might be sufficient to solve that, assuming those older versions are still compilable. The larger issue is that boot-packages like base frequently have breaking changes and there is no way to use older versions of base with newer versions of the compiler. Is there some alternative base library available that is committed to long term stability?

@noughtmare
Copy link

Is there some alternative base library available that is committed to long term stability?

There is the haskell2010 library, but it doesn't compile any more due to (you guessed it) changes in base. Perhaps a library like that can be maintained fairly easily for a very long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants