Skip to content

Commit 3169b87

Browse files
Add MHS as a recognized compiler. (#9878)
* Add MHS as a recognized compiler. * Add Changelog entry * Add comment. * Update checksums. * Update more checksums. --------- Co-authored-by: Lennart Augustsson <[email protected]>
1 parent 5ea22e2 commit 3169b87

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

Cabal-syntax/src/Distribution/Compiler.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ data CompilerFlavor
7575
| LHC
7676
| UHC
7777
| Eta
78+
| MHS -- MicroHS, see https://github.com/augustss/MicroHs
7879
| HaskellSuite String -- string is the id of the actual compiler
7980
| OtherCompiler String
8081
deriving (Generic, Show, Read, Eq, Ord, Typeable, Data)
@@ -85,7 +86,7 @@ instance NFData CompilerFlavor where rnf = genericRnf
8586

8687
knownCompilerFlavors :: [CompilerFlavor]
8788
knownCompilerFlavors =
88-
[GHC, GHCJS, NHC, YHC, Hugs, HBC, Helium, JHC, LHC, UHC, Eta]
89+
[GHC, GHCJS, NHC, YHC, Hugs, HBC, Helium, JHC, LHC, UHC, Eta, MHS]
8990

9091
instance Pretty CompilerFlavor where
9192
pretty (OtherCompiler name) = Disp.text name

Cabal-tests/tests/UnitTests/Distribution/Utils/Structured.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ md5Check proxy md5Int = structureHash proxy @?= md5FromInteger md5Int
3333
md5CheckGenericPackageDescription :: Proxy GenericPackageDescription -> Assertion
3434
md5CheckGenericPackageDescription proxy = md5Check proxy
3535
#if MIN_VERSION_base(4,19,0)
36-
0x4acd7857947385180d814f36dc1a759e
36+
0x44f8430d7366cf849e09669627573040
3737
#else
38-
0x3ff3fa6c3c570bcafa10b457b1208cc8
38+
0x8ed837568017bde3abb4fcee244b9c9f
3939
#endif
4040

4141
md5CheckLocalBuildInfo :: Proxy LocalBuildInfo -> Assertion
4242
md5CheckLocalBuildInfo proxy = md5Check proxy
4343
#if MIN_VERSION_base(4,19,0)
44-
0x552eca9ce2e4a34e74deff571f279fc4
44+
0xdff58fe5e7f9568c67cd982eaba7edc2
4545
#else
46-
0x48497d6b3f15df06f1107b81b98febe1
46+
0x4e50a4a95779b862edde3d6696797251
4747
#endif

changelog.d/pr-9878

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
synopsis: Add mhs as a known Haskell compiler
2+
packages: Cabal
3+
issues:
4+
prs: #9878
5+
6+
description: {
7+
This simply add MHS to the enumeration of known Haskell compilers.
8+
}

0 commit comments

Comments
 (0)