@@ -39,8 +39,10 @@ module Distribution.Described (
39
39
) where
40
40
41
41
import 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
+ )
44
46
45
47
import Data.Functor.Identity (Identity (.. ))
46
48
import Data.Maybe (fromMaybe )
@@ -100,7 +102,7 @@ import Distribution.Types.UnqualComponentName (UnqualComponentName)
100
102
import Distribution.Utils.Path (LicenseFile , PackageDir , SourceDir , SymbolicPath )
101
103
import Distribution.Verbosity (Verbosity )
102
104
import Distribution.Version (Version , VersionRange )
103
- import Language.Haskell.Extension (Extension , Language )
105
+ import Language.Haskell.Extension (Extension , Language , knownLanguages )
104
106
105
107
-- | Class describing the pretty/parsec format of a.
106
108
class (Pretty a , Parsec a ) => Described a where
@@ -422,7 +424,7 @@ instance Described IncludeRenaming where
422
424
mr = describe (Proxy :: Proxy ModuleRenaming )
423
425
424
426
instance Described Language where
425
- describe _ = REUnion [ " GHC2021 " , " Haskell2010 " , " Haskell98 " ]
427
+ describe _ = REUnion $ ( REString . show ) <$> reverse knownLanguages
426
428
427
429
instance Described LegacyExeDependency where
428
430
describe _ = RETodo
0 commit comments