Skip to content

Composable ghc*failure. #519

@phadej

Description

@phadej

With more GHC versions we end up with predicates looking like

ghc92and94and9122failure :: Result -> IO ()
#if (__GLASGOW_HASKELL__ >= 902 && __GLASGOW_HASKELL__ <= 904) || GHC_9122
ghc92and94and9122failure = assertFailure'
#else
ghc92and94and9122failure = assertSuccess
#endif

I suggest that we refactor these so we'd rather write tests as

assertSucceessExcept (ghc92 || ghc94 || ghc9122) $ $(lhsFoo ==~ rhsFoo)

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