freeman42x / haskell-editor-setup

Easy instructions for setting up Haskell editors / IDEs on any major operating system.
GNU General Public License v3.0
101 stars 15 forks source link

1d - Updating `configuration.nix` should be done using AST manipulation #114

Closed freeman42x closed 4 years ago

freeman42x commented 4 years ago

Do this for NixOS / Atom.

You will probably need to use HNIX for Nix AST manipulation.

transform AST using uniplate combinators - srk on freenode IRC

Steps:

  1. Read configuration.nix into AST
  2. Update AST by adding the required Nix packages: GHC, cabal-install, etc.
  3. Save AST back to configuration.nix

Make sure that this process does not change anything else: comments, spacing, etc.

freeman42x commented 4 years ago

@freedan42x Are you still working on this or should I re-assign?

puffnfresh commented 4 years ago

If we're going to use home-manager #122, does this need to be done?

freeman42x commented 4 years ago

@puffnfresh No, it will be no longer needed, you are right.

It will be needed for the home-manager nix configuration file though if it already exists. I have not used home-manager yet, it is on my To Do list so I do not know what it is called.