doctest-parallel-0.2.6: Test interactive Haskell examples
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.DocTest.Internal.Util

Synopsis

Documentation

takeWhileEnd :: (a -> Bool) -> [a] -> [a] Source #

Return the longest suffix of elements that satisfy a given predicate.

stripEnd :: String -> String Source #

Remove trailing white space from a string.

>>> stripEnd "foo   "
"foo"