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

Introducing own prelude in Haskell files #732

Closed
hanjoosten opened this issue Dec 17, 2017 · 0 comments
Closed

Introducing own prelude in Haskell files #732

hanjoosten opened this issue Dec 17, 2017 · 0 comments
Assignees

Comments

@hanjoosten
Copy link
Member

Currently we use the standard prelude from Haskell. However, at several places we use different libraries to do IO. This is required because we want to have UTF8 all over the place, and not having to do with any locales. We have had problems with that in the past.

The state of the code is, that we now use several (sometimes even different) implementations of IO stuff like writefile, putStrLn etc. Sooner or later, this will cause problems (I think that we have these problems even now, when we write to stdout, it is not guaranteed that it is UTF8 in all casese).

To solve this, I will create a new module in which the prelude will be made available and the correct IO functions. Then I will tell the compiler not to automatically include prelude any longer. This will force the use of our own prelude, so we can guarantee the use of UTF8.

@hanjoosten hanjoosten self-assigned this Dec 17, 2017
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

1 participant