You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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 ofbase
with newer versions of the compiler. Is there some alternative base library available that is committed to long term stability?The text was updated successfully, but these errors were encountered: