License | BSD-3 |
---|---|
Maintainer | autotaker@gmail.com |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
when :: Matcher a -> Matcher a Source #
synonym of id
function.
Use this function for improving readability
class TupleLike a where Source #
Instances
TupleLike Nil Source # | |
TupleLike (a :* (b :* (c :* (d :* (e :* (f :* (g :* Nil))))))) Source # | |
Defined in Control.Method.Internal | |
TupleLike (a :* (b :* (c :* (d :* (e :* (f :* Nil)))))) Source # | |
Defined in Control.Method.Internal | |
TupleLike (a :* (b :* (c :* (d :* (e :* Nil))))) Source # | |
Defined in Control.Method.Internal | |
TupleLike (a :* (b :* (c :* (d :* Nil)))) Source # | |
TupleLike (a :* (b :* (c :* Nil))) Source # | |
TupleLike (a :* (b :* Nil)) Source # | |
TupleLike (a :* Nil) Source # | |
class TupleLike a => ArgsMatcher a where Source #
Matcher for Args
>>>
args ((==2), (>3)) (2 :* 4 :* Nil)
True>>>
args even (1 :* Nil)
False>>>
args () Nil
True
type EachMatcher a Source #
args :: EachMatcher a -> Matcher a Source #
Convert a tuple of matchers to a matcher of tuples
Instances
ArgsMatcher Nil Source # | |
Defined in Test.Method.Matcher type EachMatcher Nil Source # | |
ArgsMatcher (a :* (b :* (c :* (d :* (e :* (f :* (g :* Nil))))))) Source # | |
ArgsMatcher (a :* (b :* (c :* (d :* (e :* (f :* Nil)))))) Source # | |
ArgsMatcher (a :* (b :* (c :* (d :* (e :* Nil))))) Source # | |
ArgsMatcher (a :* (b :* (c :* (d :* Nil)))) Source # | |
ArgsMatcher (a :* (b :* (c :* Nil))) Source # | |
ArgsMatcher (a :* (b :* Nil)) Source # | |
ArgsMatcher (a :* Nil) Source # | |
Defined in Test.Method.Matcher type EachMatcher (a :* Nil) Source # |