Minor improvement in docs for ‘toCamelCased’

This commit is contained in:
mrkkrp 2016-07-11 14:51:08 +03:00
parent 03234409a0
commit f7d63badc7

View File

@ -147,7 +147,10 @@ toDashed = liftM dasherize . handleEither . parseCamelCase []
-- "FooBarBazz"
-- >>> toCamelCased False "foo_bar_bazz"
-- "fooBarBazz"
toCamelCased :: MonadThrow m => Bool -> Text -> m Text
toCamelCased :: MonadThrow m
=> Bool -- ^ Capitalize the first character
-> Text -- ^ Input
-> m Text -- ^ Ouput
toCamelCased t = liftM (camelizeCustom t) . handleEither . parseSnakeCase []
{-# INLINE toCamelCased #-}