Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

Feature request: Support adding imports "on the fly", based on which identifiers are used in code. #64

Open
Wizek opened this issue Oct 18, 2017 · 1 comment
Labels

Comments

@Wizek
Copy link

Wizek commented Oct 18, 2017

Creating because of the following reddit thread. https://www.reddit.com/r/haskell/comments/7777df/hack_importify_by_serokell_during_hacktoberfest/dojxjx1/?context=10000

An example:

  1. Initial file:

    main = print "hello"
  2. Then manually changed to:

    main = print =<< getCurrentTime
  3. Then the following import is automatically added:

    import Data.Time (getCurrentTime)
    
    main = print =<< getCurrentTime
@chshersh
Copy link
Contributor

chshersh commented Oct 18, 2017

I wrote this in the comment section to other issue but this issue description looks better so I close previous issue as duplicate.

Thanks for creating issue! But first we need to simply support adding imports...
There's such tool halberd which can add missing imports. But it's not maintained. And its interface is not very convenient...

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

No branches or pull requests

2 participants