-
Notifications
You must be signed in to change notification settings - Fork 153
Open
Labels
Description
{-# LANGUAGE FlexibleContexts #-}
module Test where
import Control.Monad.Reader
test :: MonadReader a m => m a
test = undefined
This code is OK for GHC, but stylish-haskell requires additional MultiParamTypeClasses.
The error is Language.Haskell.Stylish.Parse.parseModule: could not parse a.hs: ParseFailed (SrcLoc "<unknown>.hs" 7 28) "MultiParamTypeClasses language extension is not enabled. Please add {-# LANGUAGE MultiParamTypeClasses #-} pragma at the top of your module."
UPD. Depends on haskell-suite/haskell-src-exts#304