-
Notifications
You must be signed in to change notification settings - Fork 6
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
Redundant imports for Time(Posix) #69
Comments
@ShrykeWindgrace This is a known issue. In our code we always use Let me think what we can do here and I will get back to this issue later. |
I guess some navigation in the spirit of |
To elaborate further, I sketched (with some external help =) ) a solution here. Main idea is to recover a list of types used in all constructors, detect an "Interesting" type via a typefamily evaluating to |
@ShrykeWindgrace Thanks for your work! It's very nice that you are trying to work on this issue 🙂We already use traversal of the generic tree (in the spirit of
I imagine the solution of this problem as follows:
|
@chshersh Indeed, |
Even if my data types do not contain
UTCTime
fields (or any time-related types for that matter), the fileTypes.elm
still contains a lineimport Time exposing (Posix)
elm-street:0.0.1
, elm code generation is done exactly as described in its hackage page. If necessary, I can provide an MWE.The text was updated successfully, but these errors were encountered: