Add hls installation to bootstrap-haskell
This commit is contained in:
		
							parent
							
								
									9c9aa4f9c0
								
							
						
					
					
						commit
						00f3fa35fd
					
				@ -187,6 +187,27 @@ edo cabal new-update
 | 
				
			|||||||
printf "\\033[0;35m%s\\033[0m\\n" ""
 | 
					printf "\\033[0;35m%s\\033[0m\\n" ""
 | 
				
			||||||
printf "\\033[0;35m%s\\033[0m\\n" "Installation done!"
 | 
					printf "\\033[0;35m%s\\033[0m\\n" "Installation done!"
 | 
				
			||||||
printf "\\033[0;35m%s\\033[0m\\n" ""
 | 
					printf "\\033[0;35m%s\\033[0m\\n" ""
 | 
				
			||||||
 | 
					printf "\\033[0;35m%s\\033[0m\\n" "Do you want to install haskell-language-server (HLS) now?"
 | 
				
			||||||
 | 
					printf "\\033[0;35m%s\\033[0m\\n" "HLS is a language-server that provides IDE-like functionality"
 | 
				
			||||||
 | 
					printf "\\033[0;35m%s\\033[0m\\n" "and can integrate with different editors, such as Vim, Emacs, VS Code, Atom, ..."
 | 
				
			||||||
 | 
					printf "\\033[0;35m%s\\033[0m\\n" "Also see https://github.com/haskell/haskell-language-server/blob/master/README.md"
 | 
				
			||||||
 | 
					printf "\\033[0;35m%s\\033[0m\\n" ""
 | 
				
			||||||
 | 
					printf "\\033[0;35m%s\\033[0m\\n" "Answer with YES or NO and press ENTER."
 | 
				
			||||||
 | 
					printf "\\033[0;35m%s\\033[0m\\n" ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					while true; do
 | 
				
			||||||
 | 
						read -r next_answer </dev/tty
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						case $next_answer in
 | 
				
			||||||
 | 
							[Yy]*)
 | 
				
			||||||
 | 
								eghcup --cache install hls
 | 
				
			||||||
 | 
								;;
 | 
				
			||||||
 | 
							[Nn]*)
 | 
				
			||||||
 | 
								break ;;
 | 
				
			||||||
 | 
							*)
 | 
				
			||||||
 | 
								echo "Please type YES or NO and press enter.";;
 | 
				
			||||||
 | 
						esac
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -z "${BOOTSTRAP_HASKELL_NONINTERACTIVE}" ] ; then
 | 
					if [ -z "${BOOTSTRAP_HASKELL_NONINTERACTIVE}" ] ; then
 | 
				
			||||||
    echo "In order to run ghc and cabal, you need to adjust your PATH variable."
 | 
					    echo "In order to run ghc and cabal, you need to adjust your PATH variable."
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user