Skip to content

Support for tasty test dependencies (Non-exhaustive pattern match warnings with tasty-1.4.1) #28

@sjakobi

Description

@sjakobi

I simply noticed these in the build log and wondered whether they would pose a problem:

Test/Tasty/Silver/Filter.hs:114:9: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In an equation for ‘filter'’:
        Patterns not matched:
            [] (After _ _ _)
            (_:_) (After _ _ _)
    |
114 |         filter' pth (SingleTest n t) = if prd (pth <//> n) then Just $ SingleTest n t else Nothing
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

Test/Tasty/Silver/Interactive/Run.hs:36:1: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In an equation for ‘wrapRunTest'’:
        Patterns not matched:
            [] _ (After _ _ _)
            (_:_) _ (After _ _ _)
   |
36 | wrapRunTest' tp f (SingleTest n t) = SingleTest n (CustomTestExec t (f (tp <//> n) n))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions