git.iko.soy/typeable/stackage2nix
on master help sign in
Upd mkStackYaml user friendly
332920aDmitry Bushev
src/Runner/Cli.hs+3−1
@@ -69,7 +69,9 @@ mkStackYaml p = case splitFileName p of
69 (dir, "") -> StackYaml dir "stack.yaml"
69 (dir, "") -> StackYaml dir "stack.yaml"
70 (dir, ".") -> StackYaml dir "stack.yaml"
70 (dir, ".") -> StackYaml dir "stack.yaml"
71 (_ , "..") -> StackYaml p "stack.yaml"
71 (_ , "..") -> StackYaml p "stack.yaml"
72+ (dir, file) -> case splitExtension file of
73+ (_, "") -> StackYaml p "stack.yaml"
72− (dir, file) -> StackYaml dir file
74+ _ -> StackYaml dir file
73
75
74options :: Parser Options
76options :: Parser Options
75options = Options
77options = Options