This project is mirrored from Pull mirroring updated .
  1. 06 Apr, 2020 1 commit
    • Oleg Grenrus's avatar
      Improve `cabal init` code a bit · 2fa83023
      Oleg Grenrus authored
      - Always ask for SPDX expression, we can "convert" them to old format
      - No default license
      - Add cabal-version: 3.0 to the list
      - cabal-version is asked using CabalSpecVersion type
      - seems to fix what #6619 tries to fix:
      % /code/shared-haskell/cabal/dist-newstyle/build/x86_64-linux/ghc-8.8.3/cabal-install- init -l 'FOO AND BAR'
      Cannot parse license: FOO AND BAR
      CallStack (from HasCallStack):
        error, called at ./Distribution/ReadE.hs:42:24 in Cabal-
      an error, but it doesn't loop.
  2. 04 Apr, 2020 1 commit
    • Matt Renaud's avatar
      Split monolithic Init.hs module into 5 sub-modules. · 9bd18b6a
      Matt Renaud authored
      Init.Command - Main cabal init logic that ties everything together.
      Init.Defaults - Default values for items not specified in config or arguments
      Init.FileCreators - All the createXyz functions which write files (LICENSE, Main.hs, etc.)
      Init.Prompt - Utilities for prompting the user for selections
      Init.Utils - Misc utilities shared across the above modules