Skip to content

Commit

Permalink
Merge pull request #6650 from phadej/pr-6641
Browse files Browse the repository at this point in the history
Split monolithic Init.hs module into 5 sub-modules.
  • Loading branch information
m-renaud authored Apr 4, 2020
2 parents 3752c3e + 9bd18b6 commit 26b2def
Show file tree
Hide file tree
Showing 8 changed files with 1,501 additions and 1,308 deletions.
1,310 changes: 2 additions & 1,308 deletions cabal-install/Distribution/Client/Init.hs

Large diffs are not rendered by default.

690 changes: 690 additions & 0 deletions cabal-install/Distribution/Client/Init/Command.hs

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions cabal-install/Distribution/Client/Init/Defaults.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Init.Defaults
-- Copyright : (c) Brent Yorgey 2009
-- License : BSD-like
--
-- Maintainer : [email protected]
-- Stability : provisional
-- Portability : portable
--
-- Default values to use in cabal init (if not specified in config/flags).
--
-----------------------------------------------------------------------------

module Distribution.Client.Init.Defaults (
defaultCabalVersion
, myLibModule
) where

import Distribution.ModuleName
( ModuleName ) -- And for the Text instance
import qualified Distribution.ModuleName as ModuleName
( fromString )
import Distribution.Version
( Version, mkVersion )

defaultCabalVersion :: Version
defaultCabalVersion = mkVersion [1,10]

myLibModule :: ModuleName
myLibModule = ModuleName.fromString "MyLib"
Loading

0 comments on commit 26b2def

Please sign in to comment.