Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
avoid ScopedTypeVariables
Browse files Browse the repository at this point in the history
  • Loading branch information
jinwoo committed Jan 3, 2020
1 parent af4b87c commit d09fc1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE ScopedTypeVariables #-}
#include "ghc-api-version.h"

module Main (main) where
Expand Down Expand Up @@ -1024,7 +1023,10 @@ cppTests =
-- Some give the column number and others don't (hence -1). Assert either
-- of them.
(run $ expectError content (2, -1))
`catch` (\(_ :: HUnitFailure) -> run $ expectError content (2, 1))
`catch` ( \e -> do
let _ = e :: HUnitFailure
run $ expectError content (2, 1)
)
where
expectError :: T.Text -> Cursor -> Session ()
expectError content cursor = do
Expand Down

0 comments on commit d09fc1f

Please sign in to comment.