Skip to content

Commit

Permalink
Update a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisnu Adi Nurcahyo committed Nov 8, 2016
1 parent bfe41d6 commit c3c896e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hapoid.hs
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@ simplify path = do
then reverse $ (take 40 (reverse path)) ++ "..."
else path

-- Check if it's a msgstr
isMsgstr :: String -> Bool
isMsgstr text
| text == "" = False
| (head $ words text) == "msgstr" = True
| otherwise = False

-- Get the msgstr
getMsgstr :: String -> String
getMsgstr text' = do
let text = words text'
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ command -v ghc >/dev/null 2>&1 || {

echo ""

ghc -O hapoid.hs
ghc -O2 hapoid.hs
rm hapoid.hi
rm hapoid.o

Expand Down

0 comments on commit c3c896e

Please sign in to comment.