Skip to content

Commit

Permalink
Add MultiParamTypeClasses to tests with fun deps
Browse files Browse the repository at this point in the history
GHC 7.0.4 needs this.
  • Loading branch information
Ericson2314 committed Dec 27, 2020
1 parent 5c80b85 commit 9d1e29a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion tests/monaderror-explist.y
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
{-# LANGUAGE FunctionalDependencies, FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleInstances #-}
-- For ancient GHC 7.0.4
{-# LANGUAGE MultiParamTypeClasses #-}
module Main where

import Data.Char
Expand Down
5 changes: 4 additions & 1 deletion tests/monaderror.y
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
{-# LANGUAGE FunctionalDependencies, FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleInstances #-}
-- For ancient GHC 7.0.4
{-# LANGUAGE MultiParamTypeClasses #-}
module Main where

import Control.Monad (when)
Expand Down
6 changes: 5 additions & 1 deletion tests/typeclass_monad_lexer.y
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
{-# LANGUAGE FunctionalDependencies, FlexibleInstances, UndecidableInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleInstances #-}
-- For ancient GHC 7.0.4
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
import Control.Monad (liftM, ap)
import Control.Applicative as A
}
Expand Down

0 comments on commit 9d1e29a

Please sign in to comment.