Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.HMock.Internal.Util
Description
Internal utilities used for HMock implementation.
Documentation
A value together with its source location.
Instances
Functor Located Source # | |
Eq a => Eq (Located a) Source # | |
Ord a => Ord (Located a) Source # | |
locate :: CallStack -> a -> Located a Source #
Annotates a value with its source location from the call stack.
choices :: [a] -> [(a, [a])] Source #
Returns all ways to choose one element from a list, and the corresponding remaining list.
isSubsequenceOf :: (IsSequence t, Eq (Element t)) => t -> t -> Bool Source #
Checks if one sequence is a subsequence of another.