git.iko.soy/typeable/stackage2nix
on master help sign in
Upd mkStackYaml user friendly
commit332920a21e54d9f8eaf573562168f803746427ee authorDmitry Bushev <bushevdv@gmail.com> dateThu 11 Jan 2018, 22:46 (9 years ago) parente6a68bd
1 file changed+3−1
src/Runner/Cli.hs+3−1
src/Runner/Cli.hs+3−1
@@ -69,7 +69,9 @@ mkStackYaml p = case splitFileName p of
6969 (dir, "") -> StackYaml dir "stack.yaml"
7070 (dir, ".") -> StackYaml dir "stack.yaml"
7171 (_ , "..") -> StackYaml p "stack.yaml"
72− (dir, file) -> StackYaml dir file
72+ (dir, file) -> case splitExtension file of
73+ (_, "") -> StackYaml p "stack.yaml"
74+ _ -> StackYaml dir file
7375
7476options :: Parser Options
7577options = Options