Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrosso committed Jul 23, 2022
1 parent c2cabd3 commit 8da784a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Axel/Eff/Process.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runProcess =
, P.std_out = P.CreatePipe
, P.std_err = P.CreatePipe
}
-- The handles will always be created because of `CreatePipe`, so we can safely unwrap them.
-- The handles will always be created because of `CreatePipe`, so we can safely unwrap them.
(Just stdinHandle, Just stdoutHandle, Just stderrHandle, processHandle) <-
P.createProcess config
pure (stdinHandle, stdoutHandle, stderrHandle, processHandle)
Expand Down
2 changes: 1 addition & 1 deletion src/Axel/Eff/Random.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ runRandom :: (IOE :> effs) => Eff (Random ': effs) a -> Eff effs a
runRandom =
interpret $ \_ ->
\case
Random -> liftIO $ R.randomIO
Random -> liftIO R.randomIO
10 changes: 3 additions & 7 deletions src/Axel/Haskell/Project.hs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import qualified Effectful.State.Static.Local as Eff
type ProjectPath = FilePath

newProject ::
'[ Effs.FileSystem, Effs.Process, Effs.Resource] :>> effs
('[ Effs.FileSystem, Effs.Process, Effs.Resource] :>> effs)
=> Text
-> Eff.Eff effs ()
newProject projectName = do
Expand All @@ -76,9 +76,7 @@ data ProjectFileType
| Backend

getProjectFiles ::
(Effs.FileSystem :> effs)
=> ProjectFileType
-> Eff.Eff effs [FilePath]
(Effs.FileSystem :> effs) => ProjectFileType -> Eff.Eff effs [FilePath]
getProjectFiles fileType = do
files <-
concatMapM
Expand All @@ -97,9 +95,7 @@ transpileProject =
Ghci.withGhci $ do
axelFiles <- getProjectFiles Axel
initialModuleInfo <- readModuleInfo axelFiles
moduleInfo <-
Eff.execState initialModuleInfo $ mapM transpileFileInPlace axelFiles
pure moduleInfo
Eff.execState initialModuleInfo $ mapM transpileFileInPlace axelFiles

buildProject ::
('[ Effs.Console, Eff.Error Error, Effs.FileSystem, Effs.Ghci, Effs.Log, Effs.Process, Effs.Resource] :>> effs)
Expand Down

0 comments on commit 8da784a

Please sign in to comment.