зеркало из
				https://github.com/iharh/notes.git
				synced 2025-11-02 22:56:09 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			14 строки
		
	
	
		
			422 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 строки
		
	
	
		
			422 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
2021
 | 
						|
https://www.haskellforall.com/2021/01/dynamic-type-errors-lack-relevance.html
 | 
						|
 | 
						|
let
 | 
						|
  pkgs = import <nixpkgs> { };
 | 
						|
  enable = option: "${option}=true";
 | 
						|
  disable = option: "${option}=false";
 | 
						|
in
 | 
						|
  pkgs.lib.cli.toGNUCommandLine { }
 | 
						|
    { option = [ "max-jobs=5" "cores=4" enable "fallback" ]; }
 | 
						|
 | 
						|
# The intention was to produce this result:
 | 
						|
    [ "--option" "max-jobs=5" "--option" "cores=4" "--option" "fallback=true" ]
 |