Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghcup-hs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
ghcup-hs
Merge requests
!159
Add BOOTSTRAP_HASKELL_MINIMAL wrt
#222
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add BOOTSTRAP_HASKELL_MINIMAL wrt
#222
issue-222
into
master
Overview
0
Commits
1
Pipelines
2
Changes
2
Merged
Julian Ospald
requested to merge
issue-222
into
master
3 years ago
Overview
0
Commits
1
Pipelines
2
Changes
2
Expand
0
0
Merge request reports
Compare
master
version 1
6903d84b
3 years ago
master (base)
and
latest version
latest version
e5947f34
1 commit,
3 years ago
version 1
6903d84b
1 commit,
3 years ago
2 files
+
37
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
bootstrap-haskell
+
28
−
9
Options
@@ -3,6 +3,7 @@
# Main settings:
# * BOOTSTRAP_HASKELL_NONINTERACTIVE - any nonzero value for noninteractive installation
# * BOOTSTRAP_HASKELL_NO_UPGRADE - any nonzero value to not trigger the upgrade
# * BOOTSTRAP_HASKELL_MINIMAL - any nonzero value to only install ghcup
# * GHCUP_USE_XDG_DIRS - any nonzero value to respect The XDG Base Directory Specification
# * BOOTSTRAP_HASKELL_VERBOSE - any nonzero value for more verbose installation
# * BOOTSTRAP_HASKELL_GHC_VERSION - the ghc version to install
@@ -591,10 +592,12 @@ ask_bashrc
ask_bashrc_answer
=
$?
ask_cabal_config_init
ask_cabal_config_init_answer
=
$?
ask_hls
ask_hls_answer
=
$?
ask_stack
ask_stack_answer
=
$?
if
[
-z
"
${
BOOTSTRAP_HASKELL_MINIMAL
}
"
]
;
then
ask_hls
ask_hls_answer
=
$?
ask_stack
ask_stack_answer
=
$?
fi
edo
mkdir
-p
"
${
GHCUP_BIN
}
"
@@ -620,14 +623,30 @@ if [ -z "${BOOTSTRAP_HASKELL_NONINTERACTIVE}" ] ; then
read
-r
answer </dev/tty
fi
eghcup
--cache
install
ghc
"
${
BOOTSTRAP_HASKELL_GHC_VERSION
}
"
if
[
-z
"
${
BOOTSTRAP_HASKELL_MINIMAL
}
"
]
;
then
eghcup
--cache
install
ghc
"
${
BOOTSTRAP_HASKELL_GHC_VERSION
}
"
eghcup
set
ghc
"
${
BOOTSTRAP_HASKELL_GHC_VERSION
}
"
eghcup
--cache
install
cabal
"
${
BOOTSTRAP_HASKELL_CABAL_VERSION
}
"
eghcup
set
ghc
"
${
BOOTSTRAP_HASKELL_GHC_VERSION
}
"
eghcup
--cache
install
cabal
"
${
BOOTSTRAP_HASKELL_CABAL_VERSION
}
"
do_cabal_config_init
$ask_cabal_config_init_answer
do_cabal_config_init
$ask_cabal_config_init_answer
edo cabal new-update
edo cabal new-update
else
# don't install ghc and cabal
case
"
${
plat
}
"
in
MSYS
*
|
MINGW
*
)
# need to bootstrap cabal to initialize config on windows
# we'll remove it afterwards
tmp_dir
=
"
$(
mktemp
-d
)
"
eghcup
--cache
install
cabal
-i
"
${
tmp_dir
}
"
"
${
BOOTSTRAP_HASKELL_CABAL_VERSION
}
"
PATH
=
"
${
tmp_dir
}
:
$PATH
"
do_cabal_config_init
$ask_cabal_config_init_answer
rm
"
${
tmp_dir
}
/cabal"
unset
tmp_dir
;;
*
)
;;
esac
fi
case
$ask_hls_answer
in
1
)
Loading