mirror of
https://github.com/typeable/inflections-hs.git
synced 2024-08-15 17:10:21 +03:00
Minor improvement in docs for ‘toCamelCased’
This commit is contained in:
parent
03234409a0
commit
f7d63badc7
@ -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 #-}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user