doctest-parallel-0.1: Test interactive Haskell examples
Safe HaskellNone
LanguageHaskell2010

Test.DocTest.Helpers

Synopsis

Documentation

data Library Source #

Instances

Instances details
Show Library Source # 
Instance details

Defined in Test.DocTest.Helpers

libraryToGhciArgs :: Library -> ([String], [String], [String]) Source #

Convert a Library to arguments suitable to be passed to GHCi.

dropEnd :: Int -> [a] -> [a] Source #

Drop a number of elements from the end of the list.

dropEnd 3 "hello"  == "he"
dropEnd 5 "bye"    == ""
dropEnd (-1) "bye" == "bye"
\i xs -> dropEnd i xs `isPrefixOf` xs
\i xs -> length (dropEnd i xs) == max 0 (length xs - max 0 i)
\i -> take 3 (dropEnd 5 [i..]) == take 3 [i..]