Skip to content

Commit

Permalink
improvements suggested by hlint
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierverdier committed Jan 12, 2016
1 parent b243027 commit 081a704
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/Main.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import System.Process (readProcessWithExitCode)
import System.Exit (ExitCode(ExitSuccess))
import System.IO.Unsafe (unsafeInterleaveIO)
import Data.List (intercalate)

import Utils (stringsFromStatus, Hash(MkHash))
import Data.Maybe (fromMaybe)
Expand All @@ -26,7 +25,7 @@ gitrevparse = do -- IO
mresult <- safeRun "git" ["rev-parse", "--short", "HEAD"]
let rev = do -- Maybe
result <- mresult
return (MkHash (init (result)))
return (MkHash (init result))
return rev

{- main -}
Expand All @@ -38,5 +37,5 @@ main = do -- IO
let result = do -- Maybe
status <- mstatus
strings <- stringsFromStatus mhash status
return (intercalate " " strings)
return (unwords strings)
putStr (fromMaybe "" result)

0 comments on commit 081a704

Please sign in to comment.