Add language fixes per issue #237
This commit is contained in:
		
							parent
							
								
									ac1e145028
								
							
						
					
					
						commit
						e8d962ac44
					
				@ -60,9 +60,10 @@ getCommonRequirements pr tr =
 | 
				
			|||||||
prettyRequirements :: Requirements -> T.Text
 | 
					prettyRequirements :: Requirements -> T.Text
 | 
				
			||||||
prettyRequirements Requirements {..} =
 | 
					prettyRequirements Requirements {..} =
 | 
				
			||||||
  let d = if not . null $ _distroPKGs
 | 
					  let d = if not . null $ _distroPKGs
 | 
				
			||||||
        then
 | 
					        then "\n  Please ensure the following distro packages "
 | 
				
			||||||
          "\n  Please install the following distro packages: "
 | 
					          <> "are installed before continuing (you can exit ghcup "
 | 
				
			||||||
            <> T.intercalate " " _distroPKGs
 | 
					          <> "and return at any time): "
 | 
				
			||||||
 | 
					          <> T.intercalate " " _distroPKGs
 | 
				
			||||||
        else ""
 | 
					        else ""
 | 
				
			||||||
      n = if not . T.null $ _notes then "\n  Note: " <> _notes else ""
 | 
					      n = if not . T.null $ _notes then "\n  Note: " <> _notes else ""
 | 
				
			||||||
  in  "System requirements " <> d <> n
 | 
					  in  "System requirements " <> d <> n
 | 
				
			||||||
 | 
				
			|||||||
@ -405,7 +405,7 @@ warn_path() {
 | 
				
			|||||||
	echo
 | 
						echo
 | 
				
			||||||
	[ -n "$1" ] && warn "$1"
 | 
						[ -n "$1" ] && warn "$1"
 | 
				
			||||||
	yellow "In order to run ghc and cabal, you need to adjust your PATH variable."
 | 
						yellow "In order to run ghc and cabal, you need to adjust your PATH variable."
 | 
				
			||||||
	yellow "To do so, you may want run 'source $GHCUP_DIR/env' in your current terminal"
 | 
						yellow "To do so, you may want to run 'source $GHCUP_DIR/env' in your current terminal"
 | 
				
			||||||
	yellow "session as well as your shell configuration (e.g. ~/.bashrc)."
 | 
						yellow "session as well as your shell configuration (e.g. ~/.bashrc)."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -677,4 +677,3 @@ _done
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# vim: tabstop=4 shiftwidth=4 expandtab
 | 
					# vim: tabstop=4 shiftwidth=4 expandtab
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user