@@ -39,8 +39,10 @@ module Distribution.Described (
3939 ) where
4040
4141import Prelude
42- (Bool (.. ), Char , Either (.. ), Enum (.. ), Eq (.. ), Ord (.. ), Show (.. ), String , elem , fmap , foldr , id , map , maybe , otherwise , return , undefined , ($) ,
43- (.) )
42+ ( Bool (.. ), Char , Either (.. ), Enum (.. ), Eq (.. ), Ord (.. ), Show (.. ), String
43+ , elem , fmap , foldr , id , map , maybe , otherwise , return , reverse , undefined
44+ , ($) , (.) , (<$>)
45+ )
4446
4547import Data.Functor.Identity (Identity (.. ))
4648import Data.Maybe (fromMaybe )
@@ -100,7 +102,7 @@ import Distribution.Types.UnqualComponentName (UnqualComponentName)
100102import Distribution.Utils.Path (LicenseFile , PackageDir , SourceDir , SymbolicPath )
101103import Distribution.Verbosity (Verbosity )
102104import Distribution.Version (Version , VersionRange )
103- import Language.Haskell.Extension (Extension , Language )
105+ import Language.Haskell.Extension (Extension , Language , knownLanguages )
104106
105107-- | Class describing the pretty/parsec format of a.
106108class (Pretty a , Parsec a ) => Described a where
@@ -422,7 +424,7 @@ instance Described IncludeRenaming where
422424 mr = describe (Proxy :: Proxy ModuleRenaming )
423425
424426instance Described Language where
425- describe _ = REUnion [ " GHC2021 " , " Haskell2010 " , " Haskell98 " ]
427+ describe _ = REUnion $ ( REString . show ) <$> reverse knownLanguages
426428
427429instance Described LegacyExeDependency where
428430 describe _ = RETodo
0 commit comments