Skip to content

Commit

Permalink
placate -Wall. minor.
Browse files Browse the repository at this point in the history
  • Loading branch information
nbogie committed Mar 24, 2013
1 parent 72e96d7 commit ecbbae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Data.List (nub)
bool :: a -> a -> Bool -> a
bool t f b = if b then t else f

remRoot (c1:c2:rest) | c2 `elem` "b#" = rest
| otherwise = c2:rest
remRoot (_c1:c2:rest) | c2 `elem` "b#" = rest
| otherwise = c2:rest
remRoot _other = [] -- either single char or empty str
switchRoot newRoot word = newRoot : remRoot word
-- (map ('A':). Data.List.nub . map remRoot . words) $ readFile "foo"
Expand Down

0 comments on commit ecbbae0

Please sign in to comment.