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

Minimize standard imports in generated Haskell #161

Open
joshsh opened this issue Feb 28, 2025 · 0 comments
Open

Minimize standard imports in generated Haskell #161

joshsh opened this issue Feb 28, 2025 · 0 comments
Labels
enhancement New feature or request lower priority

Comments

@joshsh
Copy link
Collaborator

joshsh commented Feb 28, 2025

Currently, we have the following boilerplate imports at the top of every file generated by the Haskell coder:

import qualified Data.Int as I
import qualified Data.List as L
import qualified Data.Map as M
import qualified Data.Set as S

When symbols like Set are included in generated Haskell, they are always qualified with the prefix, i.e. S.Set. However, the imports are not always needed. In Hydra-Python, we minimize standardized imports because otherwise the interpreter will complain about them. It should be straightforward to do the same thing in the Haskell coder. Do it.

@joshsh joshsh added enhancement New feature or request lower priority labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lower priority
Development

No branches or pull requests

1 participant