Skip to content

Commit

Permalink
Fix norm
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Jan 8, 2024
1 parent e115651 commit c3fd7a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lvtc/app/Args.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ parseArgs' (x:xs) args =
parseArgs :: [String] -> IO (Either Args String)
parseArgs args =
getCurrentDirectory >>= \path ->
return (parseArgs' args (Args {action = Run, folderPath = path, outFile = "out.wasm"}))
return (parseArgs' args (Args {
action = Run, folderPath = path, outFile = "out.wasm"
}))

hLine1 :: String
hLine1 = "Usage: lvtc [OPTION] [FOLDER]\n"
Expand Down
5 changes: 4 additions & 1 deletion lvtc/app/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ getFilesExpression [] = return []
selectGoodFiles :: FilePath -> [FilePath] -> IO [FilePath]
selectGoodFiles folder [] = return []

Check warning on line 41 in lvtc/app/Run.hs

View workflow job for this annotation

GitHub Actions / compil-macos

Defined but not used: ‘folder’

Check warning on line 41 in lvtc/app/Run.hs

View workflow job for this annotation

GitHub Actions / compil-linux

Defined but not used: ‘folder’

Check warning on line 41 in lvtc/app/Run.hs

View workflow job for this annotation

GitHub Actions / compil-windows

Defined but not used: `folder'

Check warning on line 41 in lvtc/app/Run.hs

View workflow job for this annotation

GitHub Actions / tests

Defined but not used: ‘folder’
selectGoodFiles folder (file:files)
| ".lvt" `isSuffixOf` trueFile = putStrLn ("- " ++ trueFile) >> selectGoodFiles folder files >>= (\others -> return (trueFile : others))
| ".lvt" `isSuffixOf` trueFile =
putStrLn ("- " ++ trueFile)
>> selectGoodFiles folder files
>>= (\others -> return (trueFile : others))
| otherwise = selectGoodFiles folder files
where
trueFile = joinPath [folder, file]
Expand Down

0 comments on commit c3fd7a1

Please sign in to comment.