on master help sign in
fixup! fixup! Fix -Wincomplete-uni-patterns
commitca179ec2f21dcc398675e9614bedee32182b5091 authorYuriy Syrovetskiy <cblp@cblp.su> dateWed 10 Jan 2018, 17:48 (9 years ago) parent145b014
1 file changed+3−3
exe/json2yaml.hs+3−3
exe/json2yaml.hs+3−3
@@ -8,9 +8,9 @@ import qualified Data.Yaml as Y
88main :: IO ()
99main = do
1010 args <- getArgs
11− let (input, output) = case args ++ repeat "-" of
12− [i, o] -> (i, o)
13− _ -> error "Usage: json2yaml [in] [out]"
11+ (input, output) <- case args ++ repeat "-" of
12+ [i, o] -> pure (i, o)
13+ _ -> fail "Usage: json2yaml [in] [out]"
1414 mval <- fmap J.decode $
1515 case input of
1616 "-" -> L.getContents