hedgehog-extras-0.6.0.0: Supplemental library for hedgehog
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hedgehog.Extras.Stock.String

Synopsis

Documentation

strip :: String -> String Source #

Strip whitespace from the beginning and end of the string.

lastLine :: String -> String Source #

Get the last line in the string

firstLine :: String -> String Source #

Get the first line in the string

readNoteM :: (Read a, Show a, MonadTest m, MonadCatch m, HasCallStack) => String -> m a Source #

Trim leading and trailing whitespace and read the string into a value. Report the read value in the test annotations.