mirror of
https://github.com/typeable/inflections-hs.git
synced 2024-09-11 06:05:33 +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"
|
-- "FooBarBazz"
|
||||||
-- >>> toCamelCased False "foo_bar_bazz"
|
-- >>> toCamelCased False "foo_bar_bazz"
|
||||||
-- "fooBarBazz"
|
-- "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 []
|
toCamelCased t = liftM (camelizeCustom t) . handleEither . parseSnakeCase []
|
||||||
{-# INLINE toCamelCased #-}
|
{-# INLINE toCamelCased #-}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user