summaryrefslogtreecommitdiff
path: root/testsuite/tests/monadfail/MonadFailWarningsWithRebindableSyntax.hs
blob: 6126e24e26f64e082e621e551a6f2227d01db43f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- Test purpose:
-- RebindableSyntax does not play that well with MonadFail, so here we ensure
-- that when both settings are enabled we get the proper warning.

{-# OPTIONS_GHC -Wmissing-monadfail-instances #-}
{-# LANGUAGE RebindableSyntax #-}

module MonadFailWarningsWithRebindableSyntax where

import Prelude

test1 f g = do
    Just x <- f
    g