@@ -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