Skip to content

Commit

Permalink
hlints
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa McHale committed Oct 22, 2017
1 parent df6bcf0 commit 9239055
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ DEFICIENCIES:
FEATURES:
- [ ] user-defined modifiers
- [ ] index for vim
- [ ] install `madlang-miso` template for pi?
- [ ] library/DSL being able to call dependencies
- [ ] don't require exactly one return statement (or allow library pragma
thing?)
Expand Down
2 changes: 1 addition & 1 deletion src/Text/Madlibs/Ana/ParseUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ modifierList = M.fromList [("to_upper", T.map toUpper)
, ("to_lower", T.map toLower)
, ("capitalize", \t -> toUpper (T.head t) `T.cons` T.tail t)
, ("reverse", T.reverse)
, ("titlecase", T.unwords . fmap (\t -> toUpper (T.head t) `T.cons` (T.tail t)) . T.words)
, ("titlecase", T.unwords . fmap (\t -> toUpper (T.head t) `T.cons` T.tail t) . T.words) -- FIXME this improperly trims spaces at beginning/end of a word
, ("reverse_words", T.unwords . reverse . T.words)
, ("oulipo", T.filter (/='e'))]

Expand Down

0 comments on commit 9239055

Please sign in to comment.